Ignore:
Timestamp:
2023-08-09T15:30:01+02:00 (9 months ago)
Author:
taylor.smock
Message:

Fix #22832: Code cleanup and some simplification, documentation fixes (patch by gaben)

There should not be any functional changes in this patch; it is intended to do
the following:

  • Simplify and cleanup code (example: Arrays.asList(item) -> Collections.singletonList(item))
  • Fix typos in documentation (which also corrects the documentation to match what actually happens, in some cases)
File:
1 edited

Legend:

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

    r18516 r18801  
    992992
    993993    /**
    994      * Equal, if the id (and class) is equal.
    995      *
    996      * An primitive is equal to its incomplete counter part.
     994     * Equal if the id (and class) are equal.
     995     * <p>
     996     * A primitive is equal to its incomplete counterpart.
    997997     */
    998998    @Override
     
    10101010    /**
    10111011     * Return the id plus the class type encoded as hashcode or super's hashcode if id is 0.
    1012      *
    1013      * An primitive has the same hashcode as its incomplete counterpart.
     1012     * <p>
     1013     * A primitive has the same hashcode as its incomplete counterpart.
    10141014     */
    10151015    @Override
Note: See TracChangeset for help on using the changeset viewer.