print anonymous class name

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@1081 379699f6-c40d-0410-875b-85095c16579e
branch_1_1
jochen 26 years ago
parent 9a042f80c8
commit 1a153a2529
  1. 2
      jode/jode/decompiler/TabbedPrintWriter.java

@ -213,7 +213,7 @@ public class TabbedPrintWriter {
return null; return null;
for (int i=0; i< outers.length; i++) { for (int i=0; i< outers.length; i++) {
if (outers[i].name == null) if (outers[i].name == null)
return "ANONYMOUS CLASS"; return "ANONYMOUS CLASS "+info.getName();
Scope scope = getScope(info, Scope.METHODSCOPE); Scope scope = getScope(info, Scope.METHODSCOPE);
if (scope != null && if (scope != null &&
!conflicts(outers[i].name, scope, scopeType)) { !conflicts(outers[i].name, scope, scopeType)) {

Loading…
Cancel
Save