Skip to content

Commit db03b6b

Browse files
author
emmanue1
committed
Fix syntax errors in decompiled sources
1 parent 9b3a168 commit db03b6b

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/main/java/org/jd/core/v1/service/converter/classfiletojavasyntax/visitor/InitInnerClassVisitor.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)