string doesn't contain quotes anymore

call analyzedSynthetic


git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@437 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent cfdf0bf6d8
commit e5b2385980
  1. 2
      jode/jode/flow/CreateClassField.java

@ -73,13 +73,13 @@ public class CreateClassField {
&& param instanceof ConstOperator && param instanceof ConstOperator
&& param.getType().equals(Type.tString)) { && param.getType().equals(Type.tString)) {
String clazz = ((ConstOperator)param).getValue(); String clazz = ((ConstOperator)param).getValue();
clazz = clazz.substring(1, clazz.length()-1);
if (put.getFieldName() if (put.getFieldName()
.equals("class$" + clazz.replace('.', '$')) .equals("class$" + clazz.replace('.', '$'))
|| put.getFieldName() || put.getFieldName()
.equals("class$L" + clazz.replace('.', '$'))) { .equals("class$L" + clazz.replace('.', '$'))) {
cmp.setSubExpressions cmp.setSubExpressions
(0, new ClassFieldOperator(Type.tClass(clazz))); (0, new ClassFieldOperator(Type.tClass(clazz)));
put.getField().analyzedSynthetic();
EmptyBlock empty = new EmptyBlock(); EmptyBlock empty = new EmptyBlock();
empty.moveJump(ifBlock.thenBlock.jump); empty.moveJump(ifBlock.thenBlock.jump);
ifBlock.setThenBlock(empty); ifBlock.setThenBlock(empty);

Loading…
Cancel
Save