File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
src/main/java/org/jd/core/v1/service/converter/classfiletojavasyntax/visitor Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -381,17 +381,11 @@ public void visit(NewExpression expression) {
381381 ClassFileTypeDeclaration typeDeclaration = bodyDeclaration .getInnerTypeDeclaration (internalName );
382382
383383 if (typeDeclaration == null ) {
384- ClassFileBodyDeclaration bd = bodyDeclaration ;
385-
386- for (;;) {
384+ for (ClassFileBodyDeclaration bd = bodyDeclaration ; bd != null ; bd = bd .getOuterBodyDeclaration ()) {
387385 if (bd .getInternalTypeName ().equals (internalName )) {
388386 cfbd = bd ;
389387 break ;
390388 }
391- bd = bd .getOuterBodyDeclaration ();
392- if (bd == null ) {
393- break ;
394- }
395389 }
396390 } else if (typeDeclaration .getClass () == ClassFileClassDeclaration .class ) {
397391 ClassFileClassDeclaration cfcd = (ClassFileClassDeclaration ) typeDeclaration ;
You can’t perform that action at this time.
0 commit comments