Changeset 9987 in josm


Ignore:
Timestamp:
2016-03-14T01:19:09+01:00 (4 years ago)
Author:
Don-vip
Message:

sonar - use double instead of float

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/Utils.java

    r9971 r9987  
    14711471     * @return the initial capacity for the HashMap constructor
    14721472     */
    1473     public static int hashMapInitialCapacity(int nEntries, float loadFactor) {
     1473    public static int hashMapInitialCapacity(int nEntries, double loadFactor) {
    14741474        return (int) Math.ceil(nEntries / loadFactor);
    14751475    }
     
    14901490     */
    14911491    public static int hashMapInitialCapacity(int nEntries) {
    1492         return hashMapInitialCapacity(nEntries, 0.75f);
     1492        return hashMapInitialCapacity(nEntries, 0.75d);
    14931493    }
    14941494
Note: See TracChangeset for help on using the changeset viewer.