Changeset 6334 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2013-10-27T04:06:10+01:00 (12 years ago)
Author:
Don-vip
Message:

Sonar/Findbugs - Format string should use %n rather than \n

Location:
trunk/src/org/openstreetmap/josm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/InspectPrimitiveDialog.java

    r6267 r6334  
    231231                for (String key : o.keySet()) {
    232232                    s.append(INDENT).append(INDENT);
    233                     s.append(String.format("\"%s\"=\"%s\"\n", key, o.get(key)));
     233                    s.append(String.format("\"%s\"=\"%s\"%n", key, o.get(key)));
    234234                }
    235235            }
  • trunk/src/org/openstreetmap/josm/io/GpxWriter.java

    r6203 r6334  
    6666        out.println("<?xml version='1.0' encoding='UTF-8'?>");
    6767        out.println("<gpx version=\"1.1\" creator=\"JOSM GPX export\" xmlns=\"http://www.topografix.com/GPX/1/1\"\n" +
    68                 (hasExtensions ? String.format("    xmlns:josm=\"%s\"\n", JOSM_EXTENSIONS_NAMESPACE_URI) : "") +
     68                (hasExtensions ? String.format("    xmlns:josm=\"%s\"%n", JOSM_EXTENSIONS_NAMESPACE_URI) : "") +
    6969                "    xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" \n" +
    7070                "    xsi:schemaLocation=\"http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd\">");
Note: See TracChangeset for help on using the changeset viewer.