Ignore:
Timestamp:
2015-05-17T05:48:46+02:00 (7 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/tools/PlatformHookWindows.java

    r8308 r8379  
    241241            StringBuilder message = new StringBuilder("<html>");
    242242            message.append(tr("A previous version of JOSM has installed a custom certificate "+
    243                     "in order to provide HTTPS support for Remote Control:"));
    244             message.append("<br><ul>");
     243                    "in order to provide HTTPS support for Remote Control:"))
     244                   .append("<br><ul>");
    245245            for (String alias : insecureCertificates) {
    246                 message.append("<li>");
    247                 message.append(alias);
    248                 message.append("</li>");
     246                message.append("<li>")
     247                       .append(alias)
     248                       .append("</li>");
    249249            }
    250             message.append("</ul>");
    251             message.append(tr("It appears it could be an important <b>security risk</b>.<br><br>"+
     250            message.append("</ul>")
     251                   .append(tr("It appears it could be an important <b>security risk</b>.<br><br>"+
    252252                    "You are now going to be prompted by Windows to remove this insecure certificate.<br>"+
    253                     "For your own safety, <b>please click Yes</b> in next dialog."));
    254             message.append("</html>");
     253                    "For your own safety, <b>please click Yes</b> in next dialog."))
     254                   .append("</html>");
    255255            JOptionPane.showMessageDialog(Main.parent, message.toString(), tr("Warning"), JOptionPane.WARNING_MESSAGE);
    256256            for (String alias : insecureCertificates) {
     
    283283                    "You are now going to be prompted by Windows to confirm this operation.<br>"+
    284284                    "To enable proper HTTPS support, <b>please click Yes</b> in next dialog.<br><br>"+
    285                     "If unsure, you can also click No then disable HTTPS support in Remote Control preferences."));
    286             message.append("</html>");
     285                    "If unsure, you can also click No then disable HTTPS support in Remote Control preferences."))
     286                   .append("</html>");
    287287            JOptionPane.showMessageDialog(Main.parent, message.toString(),
    288288                    tr("HTTPS support in Remote Control"), JOptionPane.INFORMATION_MESSAGE);
Note: See TracChangeset for help on using the changeset viewer.