Fix compiling with Java 6. Integer.compare(int,int) is since Java 7.
Missed the Integer.valueOf() for the "y" param
Merge pull request #20 from ljani/java6-compat

Fix compiling with Java 6. Integer.compare(int,int) is since Java 7.