From a49faf53f7ab538c06142aa584e0b5f0aabbb686 Mon Sep 17 00:00:00 2001 From: jochen Date: Thu, 6 May 1999 12:03:13 +0000 Subject: [PATCH] Print snythetic access methods, if inner or anonymous classes disabled git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@786 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/decompiler/MethodAnalyzer.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/jode/jode/decompiler/MethodAnalyzer.java b/jode/jode/decompiler/MethodAnalyzer.java index 9a21e35..ff966cf 100644 --- a/jode/jode/decompiler/MethodAnalyzer.java +++ b/jode/jode/decompiler/MethodAnalyzer.java @@ -150,9 +150,16 @@ public class MethodAnalyzer implements Analyzer { public void dumpSource(TabbedPrintWriter writer) throws IOException { - if (synth != null && synth.getKind() != synth.UNKNOWN) + if (synth != null) { // We don't need this class anymore (hopefully?) - return; + if (synth.getKind() == synth.GETCLASS) + return; + if (synth.getKind() >= synth.ACCESSGETFIELD + && synth.getKind() <= synth.ACCESSSTATICMETHOD + && (Decompiler.options & Decompiler.OPTION_INNER) != 0 + && (Decompiler.options & Decompiler.OPTION_ANON) != 0) + return; + } if (isConstructor && classAnalyzer.constructors.length == 1 && (methodType.getParameterTypes().length == 0