Ignore:
Timestamp:
2015-06-20T23:42:21+02:00 (11 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/io/OsmWriter.java

    r8443 r8510  
    6565        this.changeset = cs;
    6666    }
     67
    6768    public void setVersion(String v) {
    6869        this.version = v;
     
    9091    protected static final Comparator<OsmPrimitive> byIdComparator = new Comparator<OsmPrimitive>() {
    9192        @Override public int compare(OsmPrimitive o1, OsmPrimitive o2) {
    92             return o1.getUniqueId()<o2.getUniqueId() ? -1 : (o1.getUniqueId()==o2.getUniqueId() ? 0 : 1);
     93            return o1.getUniqueId() < o2.getUniqueId() ? -1 : (o1.getUniqueId() == o2.getUniqueId() ? 0 : 1);
    9394        }
    9495    };
     
    198199        } else {
    199200            out.println(">");
    200             for (int i=0; i<w.getNodesCount(); ++i) {
     201            for (int i = 0; i < w.getNodesCount(); ++i) {
    201202                out.println("    <nd ref='"+w.getNodeId(i) +"' />");
    202203            }
     
    213214        } else {
    214215            out.println(">");
    215             for (int i=0; i<e.getMembersCount(); ++i) {
     216            for (int i = 0; i < e.getMembersCount(); ++i) {
    216217                out.print("    <member type='");
    217218                out.print(e.getMemberType(i).getAPIName());
     
    249250    }
    250251
    251     protected static final Comparator<Entry<String, String>> byKeyComparator = new Comparator<Entry<String,String>>() {
    252         @Override public int compare(Entry<String, String> o1, Entry<String, String> o2) {
     252    protected static final Comparator<Entry<String, String>> byKeyComparator = new Comparator<Entry<String, String>>() {
     253        @Override
     254        public int compare(Entry<String, String> o1, Entry<String, String> o2) {
    253255            return o1.getKey().compareTo(o2.getKey());
    254256        }
     
    301303            // user and visible added with 0.4 API
    302304            if (osm.getUser() != null) {
    303                 if(osm.getUser().isLocalUser()) {
     305                if (osm.getUser().isLocalUser()) {
    304306                    out.print(" user='"+XmlWriter.encode(osm.getUser().getName())+"'");
    305307                } else if (osm.getUser().isOsmUser()) {
Note: See TracChangeset for help on using the changeset viewer.