Ignore:
Timestamp:
2015-05-17T05:48:46+02:00 (9 years ago)
Author:
Don-vip
Message:

Consecutively calls to StringBuffer/StringBuilder .append should reuse the target object

File:
1 edited

Legend:

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

    r8342 r8379  
    178178    private static void alertPluginStillRequired(Component parent, String plugin, Set<String> otherPlugins) {
    179179        StringBuilder sb = new StringBuilder();
    180         sb.append("<html>");
    181         sb.append(trn("Plugin {0} is still required by this plugin:",
     180        sb.append("<html>")
     181          .append(trn("Plugin {0} is still required by this plugin:",
    182182                "Plugin {0} is still required by these {1} plugins:",
    183183                otherPlugins.size(),
    184184                plugin,
    185                 otherPlugins.size()
    186         ));
    187         sb.append(Utils.joinAsHtmlUnorderedList(otherPlugins));
    188         sb.append("</html>");
     185                otherPlugins.size()))
     186          .append(Utils.joinAsHtmlUnorderedList(otherPlugins))
     187          .append("</html>");
    189188        JOptionPane.showMessageDialog(
    190189                parent,
Note: See TracChangeset for help on using the changeset viewer.