new Attribute handling in bytecode

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@629 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent 0e8d0b4f3e
commit ff866bb60d
  1. 10
      jode/jode/decompiler/FieldAnalyzer.java

@ -21,9 +21,6 @@ package jode.decompiler;
import java.lang.reflect.Modifier; import java.lang.reflect.Modifier;
import jode.type.*; import jode.type.*;
import jode.bytecode.FieldInfo; import jode.bytecode.FieldInfo;
import jode.bytecode.AttributeInfo;
import jode.bytecode.ClassFormatException;
import jode.bytecode.ConstantPool;
import jode.expr.Expression; import jode.expr.Expression;
import jode.expr.ConstOperator; import jode.expr.ConstOperator;
@ -44,13 +41,10 @@ public class FieldAnalyzer implements Analyzer {
imports = i; imports = i;
modifiers = fd.getModifiers(); modifiers = fd.getModifiers();
type = fd.getType(); type = Type.tType(fd.getType());
fieldName = fd.getName(); fieldName = fd.getName();
constant = null; constant = null;
this.isSynthetic = (fd.findAttribute("Synthetic") != null); this.isSynthetic = fd.isSynthetic();
AttributeInfo attribute = fd.findAttribute("ConstantValue");
if (fd.getConstant() != null) { if (fd.getConstant() != null) {
constant = new ConstOperator(fd.getConstant()); constant = new ConstOperator(fd.getConstant());
constant.setType(type); constant.setType(type);

Loading…
Cancel
Save