Make local variabe parameter names disjunct

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@228 379699f6-c40d-0410-875b-85095c16579e
stable
delwi 26 years ago
parent eb6ce9856b
commit f82787d8f6
  1. 9
      jode/jode/decompiler/CodeAnalyzer.java

@ -197,6 +197,15 @@ public class CodeAnalyzer implements Analyzer {
if (!li.isShadow()) if (!li.isShadow())
li.getType().useType(); li.getType().useType();
} }
for (int i=0; i < param.length; i++) {
for (int j=0; j < i; j++) {
if (param[j].getName().equals(param[i].getName())) {
/* A name conflict happened. */
param[i].makeNameUnique();
break; /* j */
}
}
}
methodHeader.makeDeclaration(new jode.flow.VariableSet(param)); methodHeader.makeDeclaration(new jode.flow.VariableSet(param));
} }

Loading…
Cancel
Save