Fixup Enum on Java 7

Signed-off-by: Alvin Francis <nivlafx@gmail.com>