Fix compiling with JDK 1.6. Integer.compare(int,int) is since JDK 1.7.

Current version fails to compile on JDK 1.6. According to [the docs](http://docs.oracle.com/javase/7/docs/api/java/lang/Integer.html#compare%28int,%20int%29) these two are equivalent.