From 6eb38901625cbb903242b6de9ed84229ccbd0fcb Mon Sep 17 00:00:00 2001 From: jochen Date: Mon, 15 Mar 1999 17:44:10 +0000 Subject: [PATCH] showLVT: Show method names git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@420 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/decompiler/CodeAnalyzer.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/jode/jode/decompiler/CodeAnalyzer.java b/jode/jode/decompiler/CodeAnalyzer.java index ce850fd..4aff8a9 100644 --- a/jode/jode/decompiler/CodeAnalyzer.java +++ b/jode/jode/decompiler/CodeAnalyzer.java @@ -59,9 +59,12 @@ public class CodeAnalyzer implements Analyzer { if (Decompiler.useLVT) { AttributeInfo attr = code.findAttribute("LocalVariableTable"); - if (attr != null) + if (attr != null) { + if (Decompiler.showLVT) + Decompiler.err.println("Method: "+ma.getName()); lvt = new LocalVariableTable(bc.getMaxLocals(), method.classAnalyzer, attr); + } } int paramCount = method.getParamCount(); @@ -199,6 +202,8 @@ public class CodeAnalyzer implements Analyzer { readCode(codeArray, handlers); if (!Decompiler.usePUSH && methodHeader.mapStackToLocal()) methodHeader.removePush(); + if (Decompiler.removeOnetimeLocals) + methodHeader.removeOnetimeLocals(); Enumeration enum = allLocals.elements(); while (enum.hasMoreElements()) {