mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-27 15:00:13 +01:00
fix annotation test for null marked inner classes (#11826)
This commit is contained in:
parent
a8f850a128
commit
a14c06bbd8
1 changed files with 5 additions and 3 deletions
|
@ -205,14 +205,16 @@ public class AnnotationTest {
|
|||
|
||||
// Paper start - skip class if it's @NullMarked
|
||||
private static boolean isClassNullMarked(@NotNull ClassNode clazz, @NotNull Map<String, ClassNode> allClasses) {
|
||||
if (isClassNullMarked0(clazz)) {
|
||||
return true;
|
||||
}
|
||||
if (clazz.nestHostClass != null) {
|
||||
final ClassNode nestHostNode = allClasses.get(clazz.nestHostClass);
|
||||
if (nestHostNode != null) {
|
||||
return isClassNullMarked0(nestHostNode);
|
||||
return isClassNullMarked(nestHostNode, allClasses);
|
||||
}
|
||||
}
|
||||
|
||||
return isClassNullMarked0(clazz);
|
||||
return false;
|
||||
}
|
||||
|
||||
private static boolean isClassNullMarked0(@NotNull ClassNode clazz) {
|
||||
|
|
Loading…
Reference in a new issue