Ignore:
Timestamp:
2015-05-18T02:14:30+02:00 (9 years ago)
Author:
Don-vip
Message:

Sonar - various performance improvements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/OsmApi.java

    r8378 r8390  
    324324        StringBuilder rv = new StringBuilder(serverUrl);
    325325        if (version != null) {
    326             rv.append("/");
    327             rv.append(version);
    328         }
    329         rv.append("/");
     326            rv.append('/').append(version);
     327        }
     328        rv.append('/');
    330329        // this works around a ruby (or lighttpd) bug where two consecutive slashes in
    331330        // an URL will cause a "404 not found" response.
     
    683682                        while((s = in.readLine()) != null) {
    684683                            responseBody.append(s);
    685                             responseBody.append("\n");
     684                            responseBody.append('\n');
    686685                        }
    687686                    }
Note: See TracChangeset for help on using the changeset viewer.