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
stable
jochen 26 years ago
parent bda6577fdf
commit a49faf53f7
  1. 11
      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

Loading…
Cancel
Save