Ignore:
Timestamp:
2015-05-18T02:14:30+02:00 (6 years ago)
Author:
Don-vip
Message:

Sonar - various performance improvements

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

Legend:

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

    r8376 r8390  
    4747                sb.append(entry);
    4848            } else {
    49                 sb.append("'");
    50                 sb.append(entry);
    51                 sb.append("'");
     49                sb.append('\'').append(entry).append('\'');
    5250            }
    53             sb.append("|");
     51            sb.append('|');
    5452        }
    5553        return sb.toString();
  • trunk/src/org/openstreetmap/josm/tools/template_engine/Variable.java

    r7937 r8390  
    3535                    first = false;
    3636                }
    37                 result.append(key).append("=").append(dataProvider.getTemplateValue(key, false));
     37                result.append(key).append('=').append(dataProvider.getTemplateValue(key, false));
    3838            }
    3939        } else {
Note: See TracChangeset for help on using the changeset viewer.