Removing Java7 Integer.compare call