geforkt von Mirrors/Paper
1c14586c49
The static assertions are not normally evaluated in the JVM, and failed to fail when the enums went from size 25 to size 26. This meant missing values would not be detected at runtime and instead return null, compounding problems later. The switches should never evaluate to null so will instead throw runtime assertion errors. Additional unit tests were added to detect new paintings and assure they have proper, unique mappings. The test checks both that a mapping exists, is not null, and does not duplicate another mapping. |
||
---|---|---|
.. | ||
craftbukkit | ||
potion | ||
support | ||
AchievementTest.java | ||
ArtTest.java | ||
MaterialTest.java | ||
SoundTest.java | ||
WorldTypeTest.java |