Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SableCC STUPS
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
general
stups
SableCC STUPS
Commits
95a7f322
Commit
95a7f322
authored
1 year ago
by
dgelessus
Browse files
Options
Downloads
Patches
Plain Diff
Fix Java 21 warnings about possible this escape in constructor
parent
62d8551c
Branches
Branches containing commit
Tags
Tags containing commit
Loading
Pipeline
#129004
passed
1 year ago
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/org/sablecc/sablecc/In_Production.java
+2
-7
2 additions, 7 deletions
src/main/java/org/sablecc/sablecc/In_Production.java
with
2 additions
and
7 deletions
src/main/java/org/sablecc/sablecc/In_Production.java
+
2
−
7
View file @
95a7f322
...
@@ -23,7 +23,7 @@ public class In_Production
...
@@ -23,7 +23,7 @@ public class In_Production
public
In_Production
(
AProd
prod
)
public
In_Production
(
AProd
prod
)
{
{
setName
(
prod
.
getId
().
getText
()
)
;
this
.
name
=
prod
.
getId
().
getText
();
AElem
[]
prodTransforms
=
prod
.
getProdTransform
().
toArray
(
new
AElem
[
0
]);
AElem
[]
prodTransforms
=
prod
.
getProdTransform
().
toArray
(
new
AElem
[
0
]);
prodTransformElems
=
new
String
[
prodTransforms
.
length
];
prodTransformElems
=
new
String
[
prodTransforms
.
length
];
...
@@ -57,11 +57,6 @@ public class In_Production
...
@@ -57,11 +57,6 @@ public class In_Production
nbAlts
=
alts
.
length
;
nbAlts
=
alts
.
length
;
}
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
String
getName
()
public
String
getName
()
{
{
return
name
;
return
name
;
...
@@ -72,7 +67,7 @@ public class In_Production
...
@@ -72,7 +67,7 @@ public class In_Production
return
nbAlts
;
return
nbAlts
;
}
}
p
ublic
void
addAlternative
(
int
position
,
In_Alternative
alt
)
p
rivate
void
addAlternative
(
int
position
,
In_Alternative
alt
)
{
{
alternatives
[
position
]
=
alt
;
alternatives
[
position
]
=
alt
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment