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

sonar - pmd:InsufficientStringBufferDeclaration - Insufficient String Buffer Declaration

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

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/SourceEditor.java

    r10235 r10242  
    15141514            if (entry == null)
    15151515                return null;
    1516             StringBuilder s = new StringBuilder("<html><b>");
     1516            StringBuilder s = new StringBuilder(128).append("<html><b>");
    15171517            if (entry.title != null) {
    15181518                s.append(entry.title).append("</b> <span color=\"gray\">");
  • trunk/src/org/openstreetmap/josm/gui/preferences/projection/CustomProjectionChoice.java

    r9059 r10242  
    164164
    165165        private static JComponent build() {
    166             StringBuilder s = new StringBuilder();
     166            StringBuilder s = new StringBuilder(1024);
    167167            s.append("<b>+proj=...</b> - <i>").append(tr("Projection name"))
    168168             .append("</i><br>&nbsp;&nbsp;&nbsp;&nbsp;").append(tr("Supported values:")).append(' ')
Note: See TracChangeset for help on using the changeset viewer.