Changeset 6264 in josm for trunk/test/functional


Ignore:
Timestamp:
2013-09-27T01:16:28+02:00 (11 years ago)
Author:
Don-vip
Message:

Sonar/FindBugs - Performance - Method concatenates strings using + in a loop

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/functional/org/openstreetmap/josm/gui/conflict/pair/nodes/NodeListMergerTest.java

    r3034 r6264  
    2323            n1.put("key" + i, "value" + i);
    2424        }
    25         String note = "";
     25        StringBuilder note = new StringBuilder();
    2626        for (int i=0; i < 50; i++) {
    27             note += " A very long text ";
     27            note.append(" A very long text ");
    2828        }
    29         n1.put("note", note);
     29        n1.put("note", note.toString());
    3030        w1.addNode(new Node(2));
    3131        w1.addNode(new Node(3));
Note: See TracChangeset for help on using the changeset viewer.