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
No related tags found
No related merge requests found
Pipeline #129004 passed
......@@ -23,7 +23,7 @@ public class In_Production
public In_Production(AProd prod)
{
setName(prod.getId().getText());
this.name = prod.getId().getText();
AElem[] prodTransforms = prod.getProdTransform().toArray(new AElem[0]);
prodTransformElems = new String[prodTransforms.length];
......@@ -57,11 +57,6 @@ public class In_Production
nbAlts = alts.length;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
......@@ -72,7 +67,7 @@ public class In_Production
return nbAlts;
}
public void addAlternative(int position, In_Alternative alt)
private void addAlternative(int position, In_Alternative 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