Ignore:
Timestamp:
2015-11-30T23:30:47+01:00 (4 years ago)
Author:
Don-vip
Message:

pmd - Ternary operator with a boolean literal can be simplified with a boolean expression

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java

    r9067 r9074  
    15481548                    nearestAngle = getNearestAngle(angle);
    15491549                    if (getAngleDelta(nearestAngle, angle) < snapAngleTolerance) {
    1550                         active = (customBaseHeading >= 0) ? true : Math.abs(nearestAngle - 180) > 1e-3;
     1550                        active = customBaseHeading >= 0 || Math.abs(nearestAngle - 180) > 1e-3;
    15511551                        // if angle is to previous segment, exclude 180 degrees
    15521552                        lastAngle = nearestAngle;
Note: See TracChangeset for help on using the changeset viewer.