Explicitly deprecate all MaterialData subclasses

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot
2019-05-20 20:09:17 +10:00
parent 3acdc1f1b9
commit 7a2194f937
59 changed files with 231 additions and 4 deletions

View File

@@ -132,8 +132,7 @@ public class AnnotationTest {
}
if (isSubclassOf(clazz, "org/bukkit/material/MaterialData", allClasses)) {
// MaterialData is deprecated and all of its subclasses are excluded
return false;
throw new AssertionError("Subclass of MaterialData must be deprecated: " + clazz.name);
}
if (isSubclassOf(clazz, "java/lang/Exception", allClasses)