24 lines
1.1 KiB
Diff
24 lines
1.1 KiB
Diff
|
From 37fda0cd6fa5841548e4747e642c0e67800829e8 Mon Sep 17 00:00:00 2001
|
||
|
From: Aikar <aikar@aikar.co>
|
||
|
Date: Sun, 24 Mar 2019 18:44:26 -0400
|
||
|
Subject: [PATCH] Ignore package-private methods for nullability annotations
|
||
|
|
||
|
This isn't API
|
||
|
|
||
|
diff --git a/src/test/java/org/bukkit/AnnotationTest.java b/src/test/java/org/bukkit/AnnotationTest.java
|
||
|
index 596f28076..cdc0afc0c 100644
|
||
|
--- a/src/test/java/org/bukkit/AnnotationTest.java
|
||
|
+++ b/src/test/java/org/bukkit/AnnotationTest.java
|
||
|
@@ -163,7 +163,7 @@ public class AnnotationTest {
|
||
|
|
||
|
private static boolean isMethodIncluded(@NotNull ClassNode clazz, @NotNull MethodNode method, @NotNull Map<String, ClassNode> allClasses) {
|
||
|
// Exclude private, synthetic and deprecated methods
|
||
|
- if ((method.access & (Opcodes.ACC_PRIVATE | Opcodes.ACC_SYNTHETIC | Opcodes.ACC_DEPRECATED)) != 0) {
|
||
|
+ if ((method.access & (Opcodes.ACC_PRIVATE | Opcodes.ACC_SYNTHETIC | Opcodes.ACC_DEPRECATED)) != 0 || (method.access & (Opcodes.ACC_PRIVATE | Opcodes.ACC_PROTECTED | Opcodes.ACC_PUBLIC)) == 0) { // Paper - ignore package-private
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
--
|
||
|
2.21.0
|
||
|
|