- Timestamp:
- 2016-03-14T01:19:09+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/Utils.java
r9971 r9987 1471 1471 * @return the initial capacity for the HashMap constructor 1472 1472 */ 1473 public static int hashMapInitialCapacity(int nEntries, floatloadFactor) {1473 public static int hashMapInitialCapacity(int nEntries, double loadFactor) { 1474 1474 return (int) Math.ceil(nEntries / loadFactor); 1475 1475 } … … 1490 1490 */ 1491 1491 public static int hashMapInitialCapacity(int nEntries) { 1492 return hashMapInitialCapacity(nEntries, 0.75 f);1492 return hashMapInitialCapacity(nEntries, 0.75d); 1493 1493 } 1494 1494
Note:
See TracChangeset
for help on using the changeset viewer.