Changeset 12492 in josm


Ignore:
Timestamp:
2017-07-22T16:28:32+02:00 (4 months ago)
Author:
Don-vip
Message:

simplify equals

File:
1 edited

Legend:

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

    r12490 r12492  
    345345    @Override
    346346    public String toString() {
    347         return "OnLineStrategy [yOffset=" + yOffset + "]";
     347        return "OnLineStrategy [yOffset=" + yOffset + ']';
    348348    }
    349349
     
    367367        }
    368368        OnLineStrategy other = (OnLineStrategy) obj;
    369         if (Double.doubleToLongBits(yOffset) != Double.doubleToLongBits(other.yOffset)) {
    370             return false;
    371         }
    372         return true;
     369        return Double.doubleToLongBits(yOffset) == Double.doubleToLongBits(other.yOffset);
    373370    }
    374371}
Note: See TracChangeset for help on using the changeset viewer.