Java 6 compatibility fix

Integer.compare is available in Java 7+