Changeset 14947 in josm


Ignore:
Timestamp:
2019-04-01T08:31:10+02:00 (8 months ago)
Author:
GerdP
Message:

fix findBugs issue SIC_INNER_SHOULD_BE_STATIC_NEEDS_THIS

File:
1 edited

Legend:

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

    r14946 r14947  
    231231     */
    232232    public Iterator<ChangesetDataSetEntry> iterator() {
    233         return new DefaultIterator();
     233        return new DefaultIterator(entryMap);
    234234    }
    235235
     
    267267    }
    268268
    269     private class DefaultIterator implements Iterator<ChangesetDataSetEntry> {
     269    private static class DefaultIterator implements Iterator<ChangesetDataSetEntry> {
    270270        private final Iterator<Entry<PrimitiveId, Object>> typeIterator;
    271271
    272         DefaultIterator() {
     272        DefaultIterator(Map<PrimitiveId, Object> entryMap) {
    273273            typeIterator = entryMap.entrySet().iterator();
    274274        }
Note: See TracChangeset for help on using the changeset viewer.