Changeset 14194 in josm for trunk


Ignore:
Timestamp:
2018-08-29T01:28:27+02:00 (12 months ago)
Author:
Don-vip
Message:

spotbugs - IM_BAD_CHECK_FOR_ODD

File:
1 edited

Legend:

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

    r14134 r14194  
    187187        int numberOfNodesInCircle = (int) Math.ceil(6.0 * Math.pow(radiusInMeters, 0.5));
    188188        // an odd number of nodes makes the distribution uneven
    189         if ((numberOfNodesInCircle % 2) == 1) {
     189        if ((numberOfNodesInCircle % 2) != 0) {
    190190            // add 1 to make it even
    191191            numberOfNodesInCircle += 1;
Note: See TracChangeset for help on using the changeset viewer.