From f8325154fa6e74c83f639257d364155a5854a3a3 Mon Sep 17 00:00:00 2001 From: jochen Date: Tue, 9 Feb 1999 01:50:24 +0000 Subject: [PATCH] bug fixes git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@242 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/bytecode/ClassInfo.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/jode/jode/bytecode/ClassInfo.java b/jode/jode/bytecode/ClassInfo.java index b3d3522..94175a6 100644 --- a/jode/jode/bytecode/ClassInfo.java +++ b/jode/jode/bytecode/ClassInfo.java @@ -46,7 +46,6 @@ public class ClassInfo extends BinaryInfo { private ClassInfo[] interfaces; private FieldInfo[] fields; private MethodInfo[] methods; - private AttributeInfo[] attributes; public final static ClassInfo javaLangObject = forName("java.lang.Object"); @@ -83,8 +82,9 @@ public class ClassInfo extends BinaryInfo { String name = (String) enum.nextElement(); if (!name.endsWith(".class")) throw new jode.AssertError("Wrong file name"); - name.substring(0, name.length()-6); - return ClassInfo.forName(packageName+"."+ name); + return ClassInfo.forName(packageName + "." + + name.substring(0, name.length()-6)); + } }; } @@ -156,7 +156,6 @@ public class ClassInfo extends BinaryInfo { } } else { int count = input.readUnsignedShort(); - fields = new FieldInfo[count]; for (int i=0; i< count; i++) { input.readUnsignedShort(); // modifier input.readUnsignedShort(); // name @@ -178,7 +177,6 @@ public class ClassInfo extends BinaryInfo { } } else { int count = input.readUnsignedShort(); - fields = new FieldInfo[count]; for (int i=0; i< count; i++) { input.readUnsignedShort(); // modifier input.readUnsignedShort(); // name