From ea628da246520a59534c43ee4acea0e3d4a9c1f2 Mon Sep 17 00:00:00 2001 From: jochen Date: Sat, 20 Mar 1999 00:39:03 +0000 Subject: [PATCH] CodeInfo loading moved to codeanalyzer git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@472 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/decompiler/MethodAnalyzer.java | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) 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");