Ignore:
Timestamp:
2015-05-11T10:52:33+02:00 (9 years ago)
Author:
Don-vip
Message:

code style - Useless parentheses around expressions should be removed to prevent any misunderstanding

Location:
trunk/src/org/openstreetmap/josm/data/projection
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/projection/datum/NTV2GridShiftFile.java

    r8332 r8345  
    276276
    277277    public boolean isLoaded() {
    278         return (topLevelSubGrid != null);
     278        return topLevelSubGrid != null;
    279279    }
    280280
  • trunk/src/org/openstreetmap/josm/data/projection/proj/LambertConformalConic.java

    r6883 r8345  
    129129    protected double t(double lat_rad) {
    130130        return tan(PI/4 - lat_rad / 2.0)
    131             / pow(( (1.0 - e * sin(lat_rad)) / (1.0 + e * sin(lat_rad))) , e/2);
     131            / pow((1.0 - e * sin(lat_rad)) / (1.0 + e * sin(lat_rad)), e/2);
    132132    }
    133133
  • trunk/src/org/openstreetmap/josm/data/projection/proj/TransverseMercator.java

    r6362 r8345  
    229229
    230230        /* Precalculate epsilon */
    231         double epsilon = (315.0 * pow(n, 4.0) / 512.0);
     231        double epsilon = 315.0 * pow(n, 4.0) / 512.0;
    232232
    233233        /* Now calculate the sum of the series and return */
     
    276276
    277277        /* Precalculate epsilon_ (Eq. 10.22) */
    278         double epsilon_ = (1097.0 * pow(n, 4.0) / 512.0);
     278        double epsilon_ = 1097.0 * pow(n, 4.0) / 512.0;
    279279
    280280        /* Now calculate the sum of the series (Eq. 10.21) */
     
    284284            + (epsilon_ * sin(8.0 * y_));
    285285    }
    286 
    287286}
Note: See TracChangeset for help on using the changeset viewer.