Removed Integer.min which is not in OpenJDK