Ignore:
Timestamp:
2016-03-14T01:49:27+01:00 (9 years ago)
Author:
Don-vip
Message:

sonar - Methods should not be empty

Location:
trunk/src/org/openstreetmap/josm/data
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/gpx/Extensions.java

    r8308 r9989  
    33
    44import java.util.LinkedHashMap;
    5 import java.util.Map;
    65
    76/**
     
    1211    private static final long serialVersionUID = 1L;
    1312
    14     public Extensions(Map<? extends String, ? extends String> m) {
    15         super(m);
    16     }
    17 
     13    /**
     14     * Constructs a new {@code Extensions}.
     15     */
    1816    public Extensions() {
     17        super();
    1918    }
    2019}
  • trunk/src/org/openstreetmap/josm/data/imagery/ImageryInfo.java

    r9978 r9989  
    232232         */
    233233        public ImageryPreferenceEntry() {
     234            // Do nothing
    234235        }
    235236
     
    296297            valid_georeference = i.isGeoreferenceValid();
    297298            supports_epsg_4326_to_3857_conversion = i.isEpsg4326To3857Supported();
    298 
    299299        }
    300300
  • trunk/src/org/openstreetmap/josm/data/osm/Node.java

    r9979 r9989  
    319319    @Override
    320320    public void updatePosition() {
     321        // Do nothing
    321322    }
    322323
  • trunk/src/org/openstreetmap/josm/data/validation/OsmValidator.java

    r9933 r9989  
    344344    @Override
    345345    public void activeLayerChange(Layer oldLayer, Layer newLayer) {
     346        // Do nothing
    346347    }
    347348
    348349    @Override
    349350    public void layerAdded(Layer newLayer) {
     351        // Do nothing
    350352    }
    351353
  • trunk/src/org/openstreetmap/josm/data/validation/Test.java

    r9397 r9989  
    227227
    228228    @Override
    229     public void visit(Node n) {}
    230 
    231     @Override
    232     public void visit(Way w) {}
    233 
    234     @Override
    235     public void visit(Relation r) {}
     229    public void visit(Node n) {
     230        // To be overridden in subclasses
     231    }
     232
     233    @Override
     234    public void visit(Way w) {
     235        // To be overridden in subclasses
     236    }
     237
     238    @Override
     239    public void visit(Relation r) {
     240        // To be overridden in subclasses
     241    }
    236242
    237243    /**
  • trunk/src/org/openstreetmap/josm/data/validation/TestError.java

    r8958 r9989  
    366366    }
    367367
    368     @Override public void primitivesAdded(PrimitivesAddedEvent event) {}
    369 
    370     @Override public void tagsChanged(TagsChangedEvent event) {}
    371 
    372     @Override public void nodeMoved(NodeMovedEvent event) {}
    373 
    374     @Override public void wayNodesChanged(WayNodesChangedEvent event) {}
    375 
    376     @Override public void relationMembersChanged(RelationMembersChangedEvent event) {}
    377 
    378     @Override public void otherDatasetChange(AbstractDatasetChangedEvent event) {}
    379 
    380     @Override public void dataChanged(DataChangedEvent event) {}
     368    @Override public void primitivesAdded(PrimitivesAddedEvent event) {
     369        // Do nothing
     370    }
     371
     372    @Override public void tagsChanged(TagsChangedEvent event) {
     373        // Do nothing
     374    }
     375
     376    @Override public void nodeMoved(NodeMovedEvent event) {
     377        // Do nothing
     378    }
     379
     380    @Override public void wayNodesChanged(WayNodesChangedEvent event) {
     381        // Do nothing
     382    }
     383
     384    @Override public void relationMembersChanged(RelationMembersChangedEvent event) {
     385        // Do nothing
     386    }
     387
     388    @Override public void otherDatasetChange(AbstractDatasetChangedEvent event) {
     389        // Do nothing
     390    }
     391
     392    @Override public void dataChanged(DataChangedEvent event) {
     393        // Do nothing
     394    }
    381395
    382396    @Override
Note: See TracChangeset for help on using the changeset viewer.