diff options
author | Wesley Wolfe <weswolf@aol.com> | 2012-11-01 03:06:47 -0500 |
---|---|---|
committer | Wesley Wolfe <weswolf@aol.com> | 2012-11-01 03:06:47 -0500 |
commit | 1c14586c49f6314a907ae11805f4b8579e095dcc (patch) | |
tree | 53517837729e157f7d782a66ffc6be1e7c67585d /LGPL.txt | |
parent | 9a88e615d449e7a3fe3bf20b90acd2f35e02c6c1 (diff) | |
download | craftbukkit-1c14586c49f6314a907ae11805f4b8579e095dcc.tar craftbukkit-1c14586c49f6314a907ae11805f4b8579e095dcc.tar.gz craftbukkit-1c14586c49f6314a907ae11805f4b8579e095dcc.tar.lz craftbukkit-1c14586c49f6314a907ae11805f4b8579e095dcc.tar.xz craftbukkit-1c14586c49f6314a907ae11805f4b8579e095dcc.zip |
Add CraftArt mappings for Wither. Fixes BUKKIT-2667.
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.
Diffstat (limited to 'LGPL.txt')
0 files changed, 0 insertions, 0 deletions