don't merge final locals

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@895 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent 0c289807f7
commit b3f87ea1e0
  1. 2
      jode/jode/flow/StructuredBlock.java

@ -489,6 +489,8 @@ public abstract class StructuredBlock {
&& (prevLocal.isNameGenerated() && (prevLocal.isNameGenerated()
|| local.isNameGenerated() || local.isNameGenerated()
|| localName.equals(prevLocal.getName())) || localName.equals(prevLocal.getName()))
&& !prevLocal.isFinal()
&& !local.isFinal()
&& prevLocal.getExpression() == null && prevLocal.getExpression() == null
&& local.getExpression() == null) { && local.getExpression() == null) {
local.combineWith(prevLocal); local.combineWith(prevLocal);

Loading…
Cancel
Save