Ignore:
Timestamp:
2016-06-01T23:17:40+02:00 (8 years ago)
Author:
Don-vip
Message:

sonar - squid:S1854 - Dead stores should be removed

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

Legend:

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

    r9961 r10308  
    111111        // the target dataset. Create a clone and add it to the target dataset.
    112112        //
    113         OsmPrimitive target = null;
     113        OsmPrimitive target;
    114114        switch(source.getType()) {
    115115        case NODE: target = source.isNew() ? new Node() : new Node(source.getId()); break;
  • trunk/src/org/openstreetmap/josm/data/osm/FilterWorker.java

    r9665 r10308  
    2424     * Apply the filters to the primitives of the data set.
    2525     *
    26      * @param all the collection of primitives for that the filter state should
    27      * be updated
     26     * @param all the collection of primitives for that the filter state should be updated
    2827     * @param filterMatcher the FilterMatcher
    2928     * @return true, if the filter state (normal / disabled / hidden)
     
    3130     */
    3231    public static boolean executeFilters(Collection<OsmPrimitive> all, FilterMatcher filterMatcher) {
    33         boolean changed = false;
     32        boolean changed;
    3433        // first relations, then ways and nodes last; this is required to resolve dependencies
    3534        changed = doExecuteFilters(Utils.filter(all, OsmPrimitive.relationPredicate), filterMatcher);
  • trunk/src/org/openstreetmap/josm/data/osm/event/DatasetEventManager.java

    r10043 r10308  
    3636                DataSet dataSet = null;
    3737                AbstractDatasetChangedEvent consolidatedEvent = null;
    38                 AbstractDatasetChangedEvent event = null;
     38                AbstractDatasetChangedEvent event;
    3939
    4040                while ((event = eventsInEDT.poll()) != null) {
Note: See TracChangeset for help on using the changeset viewer.