Skip to content
Snippets Groups Projects
Commit 95a7f322 authored by dgelessus's avatar dgelessus
Browse files

Fix Java 21 warnings about possible this escape in constructor

parent 62d8551c
Branches
Tags
Loading
Pipeline #129004 passed
...@@ -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;
} }
public void addAlternative(int position, In_Alternative alt) private void addAlternative(int position, In_Alternative alt)
{ {
alternatives[position] = alt; alternatives[position] = alt;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment