Ignore:
Timestamp:
2016-05-17T13:51:23+02:00 (4 years ago)
Author:
Don-vip
Message:

sonar - pmd:InsufficientStringBufferDeclaration - Insufficient String Buffer Declaration

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

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/PlatformHookOsx.java

    r10178 r10242  
    323323            canHtml = false;
    324324        }
    325         StringBuilder result = new StringBuilder();
     325        StringBuilder result = new StringBuilder(48);
    326326        if (canHtml) {
    327327            result.append("<html>");
  • trunk/src/org/openstreetmap/josm/tools/WindowGeometry.java

    r10200 r10242  
    262262     */
    263263    public void remember(String preferenceKey) {
    264         StringBuilder value = new StringBuilder();
     264        StringBuilder value = new StringBuilder(32);
    265265        value.append("x=").append(topLeft.x).append(",y=").append(topLeft.y)
    266266             .append(",width=").append(extent.width).append(",height=").append(extent.height);
Note: See TracChangeset for help on using the changeset viewer.