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 jode.type.*;
import jode.bytecode.FieldInfo;
import jode.bytecode.AttributeInfo;
import jode.bytecode.ClassFormatException;
import jode.bytecode.ConstantPool;
import jode.expr.Expression;
import jode.expr.ConstOperator;
@ -44,13 +41,10 @@ public class FieldAnalyzer implements Analyzer {
imports = i;
modifiers = fd.getModifiers();
type = fd.getType();
type = Type.tType(fd.getType());
fieldName = fd.getName();
constant = null;
this.isSynthetic = (fd.findAttribute("Synthetic") != null);
AttributeInfo attribute = fd.findAttribute("ConstantValue");
this.isSynthetic = fd.isSynthetic();
if (fd.getConstant() != null) {
constant = new ConstOperator(fd.getConstant());
constant.setType(type);

Loading…
Cancel
Save