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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/data/osm/FilterTest.java

    r5556 r6334  
    169169                    foundAtLeastOne = true;
    170170                    if (!osm.get(key).equals(filterCode(osm))) {
    171                         failedPrimitives.append(String.format("Object %s. Expected [%s] but was [%s]\n", osm.toString(), osm.get(key), filterCode(osm)));
     171                        failedPrimitives.append(String.format("Object %s. Expected [%s] but was [%s]%n", osm.toString(), osm.get(key), filterCode(osm)));
    172172                    }
    173173                }
     
    175175            assertTrue(foundAtLeastOne);
    176176            if (failedPrimitives.length() != 0)
    177                 throw new AssertionError(String.format("Run #%d\n%s", i, failedPrimitives.toString()));
     177                throw new AssertionError(String.format("Run #%d%n%s", i, failedPrimitives.toString()));
    178178        }
    179179    }
Note: See TracChangeset for help on using the changeset viewer.