diff options
Diffstat (limited to 'Spigot-API-Patches-Unmapped/0175-Ignore-package-private-methods-for-nullability-annot.patch')
-rw-r--r-- | Spigot-API-Patches-Unmapped/0175-Ignore-package-private-methods-for-nullability-annot.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Spigot-API-Patches-Unmapped/0175-Ignore-package-private-methods-for-nullability-annot.patch b/Spigot-API-Patches-Unmapped/0175-Ignore-package-private-methods-for-nullability-annot.patch new file mode 100644 index 0000000000..28d9857af0 --- /dev/null +++ b/Spigot-API-Patches-Unmapped/0175-Ignore-package-private-methods-for-nullability-annot.patch @@ -0,0 +1,20 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Aikar <[email protected]> +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 2bb75e967d4250476a151599b68de80011d222b2..03229d5f4ec36a82197beb391356d791ff67fb2f 100644 +--- a/src/test/java/org/bukkit/AnnotationTest.java ++++ b/src/test/java/org/bukkit/AnnotationTest.java +@@ -168,7 +168,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; + } + |