Ignore:
Timestamp:
2009-12-13T11:48:12+01:00 (15 years ago)
Author:
jttt
Message:

Fixed some of the warnings found by FindBugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/history/HistoryOsmPrimitive.java

    r2512 r2626  
    113113        if (this.id != o.id)
    114114            throw new ClassCastException(tr("Can''t compare primitive with ID ''{0}'' to primitive with ID ''{1}''.", o.id, this.id));
    115         return new Long(this.version).compareTo(o.version);
     115        return Long.valueOf(this.version).compareTo(o.version);
    116116    }
    117117
     
    159159        if (this == obj)
    160160            return true;
    161         if (obj == null)
     161        if (!(obj instanceof HistoryOsmPrimitive))
    162162            return false;
    163163        // equal semantics is valid for subclasses like {@see HistoryOsmNode} etc. too.
Note: See TracChangeset for help on using the changeset viewer.