diff --git a/jode/jode/decompiler/MethodAnalyzer.java b/jode/jode/decompiler/MethodAnalyzer.java index 09a4157..856034d 100644 --- a/jode/jode/decompiler/MethodAnalyzer.java +++ b/jode/jode/decompiler/MethodAnalyzer.java @@ -20,7 +20,6 @@ package jode.decompiler; import jode.bytecode.MethodInfo; import jode.bytecode.AttributeInfo; -import jode.bytecode.CodeInfo; import jode.*; import java.lang.reflect.Modifier; @@ -53,16 +52,7 @@ public class MethodAnalyzer implements Analyzer { AttributeInfo codeattr = minfo.findAttribute("Code"); if (codeattr != null) { - DataInputStream stream = new DataInputStream - (new ByteArrayInputStream(codeattr.getContents())); - CodeInfo codeinfo = new CodeInfo(); - try { - codeinfo.read(classAnalyzer.getConstantPool(), stream); - code = new CodeAnalyzer(this, codeinfo, env); - } catch (IOException ex) { - ex.printStackTrace(Decompiler.err); - code = null; - } + code = new CodeAnalyzer(this, codeattr, env); } AttributeInfo excattr = minfo.findAttribute("Exceptions");