Ignore:
Timestamp:
2023-08-09T15:30:01+02:00 (19 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/gui/mappaint/styleelement/NodeElement.java

    r18502 r18801  
    380380        StringBuilder s = new StringBuilder(64).append("NodeElement{").append(super.toString());
    381381        if (mapImage != null) {
    382             s.append(" icon=[" + mapImage + ']');
     382            s.append(" icon=[").append(mapImage).append(']');
    383383        }
    384384        if (mapImage != null && mapImageAngle != null) {
    385             s.append(" mapImageAngle=[" + mapImageAngle + ']');
     385            s.append(" mapImageAngle=[").append(mapImageAngle).append(']');
    386386        }
    387387        if (symbol != null) {
    388             s.append(" symbol=[" + symbol + ']');
     388            s.append(" symbol=[").append(symbol).append(']');
    389389        }
    390390        s.append('}');
Note: See TracChangeset for help on using the changeset viewer.