decompiler: inner exprent list could be modified

master
Egor.Ushakov 10 years ago
parent 12457e9a7e
commit 0bba28eded
  1. 3
      src/org/jetbrains/java/decompiler/modules/decompiler/exps/FunctionExprent.java

@ -221,7 +221,8 @@ public class FunctionExprent extends Exprent {
} }
public FunctionExprent(int funcType, Exprent operand, Set<Integer> bytecodeOffsets) { public FunctionExprent(int funcType, Exprent operand, Set<Integer> bytecodeOffsets) {
this(funcType, Collections.singletonList(operand), bytecodeOffsets); this(funcType, new ArrayList<Exprent>(1), bytecodeOffsets);
lstOperands.add(operand);
} }
@Override @Override

Loading…
Cancel
Save