Ignore:
Timestamp:
2015-06-20T23:42:21+02:00 (9 years ago)
Author:
Don-vip
Message:

checkstyle: enable relevant whitespace checks and fix them

File:
1 edited

Legend:

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

    r8390 r8510  
    3232            }
    3333        }
    34         return new History(history.id, history.type,out);
     34        return new History(history.id, history.type, out);
    3535    }
    3636
     
    9696                }
    9797            );
    98         return new History(id, type,copy);
     98        return new History(id, type, copy);
    9999    }
    100100
     
    232232    public boolean contains(long version) {
    233233        for (HistoryOsmPrimitive primitive: versions) {
    234             if (primitive.matches(id,version))
     234            if (primitive.matches(id, version))
    235235                return true;
    236236        }
     
    247247    public HistoryOsmPrimitive getByVersion(long version) {
    248248        for (HistoryOsmPrimitive primitive: versions) {
    249             if (primitive.matches(id,version))
     249            if (primitive.matches(id, version))
    250250                return primitive;
    251251        }
     
    265265        if (h.versions.isEmpty())
    266266            return null;
    267         if (h.get(0).getTimestamp().compareTo(date)> 0)
     267        if (h.get(0).getTimestamp().compareTo(date) > 0)
    268268            return null;
    269         for (int i = 1; i < h.versions.size();i++) {
     269        for (int i = 1; i < h.versions.size(); i++) {
    270270            if (h.get(i-1).getTimestamp().compareTo(date) <= 0
    271271                    && h.get(i).getTimestamp().compareTo(date) >= 0)
Note: See TracChangeset for help on using the changeset viewer.