6934270: Remove javac warnings from Character.java

Use generics and conform to coding style

Reviewed-by: sherman
1 file changed