Ignore:
Timestamp:
2017-01-12T01:24:40+01:00 (7 years ago)
Author:
Don-vip
Message:

sonar - fb-contrib:SEO_SUBOPTIMAL_EXPRESSION_ORDER - Performance - Method orders expressions in a conditional in a sub optimal way

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/gpx/GpxDrawHelper.java

    r11451 r11452  
    175175        SystemOfMeasurement som = SystemOfMeasurement.getSystemOfMeasurement();
    176176        velocityScale.addTitle(tr("Velocity, {0}", som.speedName));
    177         if (Main.isDisplayingMapView() && oldSoM != null && newSoM != null) {
     177        if (oldSoM != null && newSoM != null && Main.isDisplayingMapView()) {
    178178            Main.map.mapView.repaint();
    179179        }
     
    11671167     */
    11681168    private void checkCache() {
    1169         if ((computeCacheMaxLineLengthUsed != maxLineLength) || (!neutralColor.equals(computeCacheColorUsed))
    1170                 || (computeCacheColored != colored) || (computeCacheColorTracksTune != colorTracksTune)
     1169        if ((computeCacheMaxLineLengthUsed != maxLineLength)
     1170                || (computeCacheColored != colored)
     1171                || (computeCacheColorTracksTune != colorTracksTune)
    11711172                || (computeCacheColorDynamic != colorModeDynamic)
    11721173                || (computeCacheHeatMapDrawColorTableIdx != heatMapDrawColorTableIdx)
     1174                || (!neutralColor.equals(computeCacheColorUsed))
    11731175      ) {
    11741176            computeCacheMaxLineLengthUsed = maxLineLength;
Note: See TracChangeset for help on using the changeset viewer.