Ignore:
Timestamp:
2014-02-27T02:50:12+01:00 (10 years ago)
Author:
Don-vip
Message:

fix some Sonar issues (Constructor Calls Overridable Method)

Location:
trunk/src/org/openstreetmap/josm/data/osm/history
Files:
2 edited

Legend:

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

    r6830 r6890  
    7373     * @return the coordinates. May be null.
    7474     */
    75     public LatLon getCoords() {
     75    public final LatLon getCoords() {
    7676        return coords;
    7777    }
     
    8181     * @param coords the coordinates. Can be null.
    8282     */
    83     public void setCoords(LatLon coords) {
     83    public final void setCoords(LatLon coords) {
    8484        this.coords = coords;
    8585    }
  • trunk/src/org/openstreetmap/josm/data/osm/history/HistoryOsmPrimitive.java

    r6830 r6890  
    3838    private Map<String, String> tags;
    3939
    40     protected void ensurePositiveLong(long value, String name) {
     40    protected final void ensurePositiveLong(long value, String name) {
    4141        if (value <= 0) {
    4242            throw new IllegalArgumentException(MessageFormat.format("Parameter ''{0}'' > 0 expected. Got ''{1}''.", name, value));
Note: See TracChangeset for help on using the changeset viewer.