Skip to content

Commit

Permalink
simplified check in generateVisibilityModifier
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzoBettini committed Feb 3, 2024
1 parent 5d926c2 commit 6af742c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -330,9 +330,7 @@ class XtendGenerator extends JvmModelGenerator implements IGenerator2 {
}
if (declaringType.local && it instanceof JvmOperation) {
val declarator = declaringType as JvmGenericType
if (!declarator.anonymous ||
!compilerHelper.canCompileToJavaAnonymousClass(declarator)
) {
if (!compilerHelper.canCompileToJavaAnonymousClass(declarator)) {
return result
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -481,8 +481,9 @@ public ITreeAppendable generateVisibilityModifier(final JvmMember it, final ITre
if ((it.getDeclaringType().isLocal() && (it instanceof JvmOperation))) {
JvmDeclaredType _declaringType_1 = it.getDeclaringType();
final JvmGenericType declarator = ((JvmGenericType) _declaringType_1);
if (((!declarator.isAnonymous()) ||
(!this.compilerHelper.canCompileToJavaAnonymousClass(declarator)))) {
boolean _canCompileToJavaAnonymousClass = this.compilerHelper.canCompileToJavaAnonymousClass(declarator);
boolean _not = (!_canCompileToJavaAnonymousClass);
if (_not) {
return result;
}
}
Expand Down

0 comments on commit 6af742c

Please sign in to comment.