Skip to content

Commit

Permalink
just make all private ctor package-private to fix lambda's referencing
Browse files Browse the repository at this point in the history
  • Loading branch information
wagyourtail committed Sep 30, 2024
1 parent 303df05 commit c73486c
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,11 @@ public ClassNode otherTransforms(ClassNode clazz, Set<ClassNode> extra, Function
}

public void fixNests(ClassNode clazz, Function<String, ClassNode> getReadOnly) {
for (MethodNode method : clazz.methods) {
if (method.name.equals("<init>")) {
method.access &= ~Opcodes.ACC_PRIVATE;
}
}
if (clazz.nestHostClass == null) {
fixNestsForParent(clazz, getReadOnly);
} else {
Expand Down

0 comments on commit c73486c

Please sign in to comment.