From dd129994ff89b72b44a8c7d69bb0135b443e6749 Mon Sep 17 00:00:00 2001 From: jochen Date: Sat, 20 Mar 1999 00:25:44 +0000 Subject: [PATCH] simpler use of ConstOperator git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@449 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/decompiler/FieldAnalyzer.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/jode/jode/decompiler/FieldAnalyzer.java b/jode/jode/decompiler/FieldAnalyzer.java index 86763e3..9bd2a34 100644 --- a/jode/jode/decompiler/FieldAnalyzer.java +++ b/jode/jode/decompiler/FieldAnalyzer.java @@ -59,12 +59,7 @@ public class FieldAnalyzer implements Analyzer { + " has wrong length"); int index = (contents[0] & 0xff) << 8 | (contents[1] & 0xff); ConstantPool cpool = cla.getConstantPool(); - if (cpool.getConstantType(index).equals(Type.tInt)) - constant = new ConstOperator(cpool.getConstantInt(index)); - else - constant = new ConstOperator - (cpool.getConstantType(index), - cpool.getConstantString(index)); + constant = new ConstOperator(cpool.getConstant(index)); constant.setType(type); constant.makeInitializer(); } catch (ClassFormatException ex) {