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. 11
      jode/jode/decompiler/CodeAnalyzer.java

@ -197,7 +197,16 @@ public class CodeAnalyzer implements Analyzer {
if (!li.isShadow())
li.getType().useType();
}
methodHeader.makeDeclaration(new jode.flow.VariableSet(param));
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));
}
public void dumpSource(TabbedPrintWriter writer)

Loading…
Cancel
Save