Bukkit/Bukkit-Bleeding — comment on commit 26cc26838078c38fdb1f044f22e4f3139a198413
File:  line 0
By mikeprimm:

It looks like there is a problem in the List case - the number case is using byteValue (-128 to 127), while the range for a character is 0 to 65535. I'd suggest switching it to intValue() with the same cast to (char) - that will preserve the range more accurately.