Maybe getBit() needs a javadoc - "Returns -1 on arrays. This is generally only to be used on the constants."