Changeset 17519 in josm


Ignore:
Timestamp:
2021-02-22T00:12:02+01:00 (4 years ago)
Author:
Don-vip
Message:

spotbugs - FE_FLOATING_POINT_EQUALITY

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/LineElement.java

    r17333 r17519  
    218218            return false;
    219219        final LineElement other = (LineElement) obj;
    220         return offset == other.offset &&
    221                realWidth == other.realWidth &&
     220        return Float.compare(offset, other.offset) == 0 &&
     221               Float.compare(realWidth, other.realWidth) == 0 &&
    222222               wayDirectionArrows == other.wayDirectionArrows &&
    223223               Objects.equals(line, other.line) &&
Note: See TracChangeset for help on using the changeset viewer.