Ignore:
Timestamp:
2020-01-18T14:13:56+01:00 (4 years ago)
Author:
simon04
Message:

Java 8: use String.join

File:
1 edited

Legend:

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

    r15587 r15716  
    1717import java.lang.reflect.InvocationTargetException;
    1818import java.util.ArrayList;
    19 import java.util.Arrays;
    2019import java.util.Collection;
    2120import java.util.Collections;
     
    6564import org.openstreetmap.josm.tools.ImageProvider;
    6665import org.openstreetmap.josm.tools.Logging;
    67 import org.openstreetmap.josm.tools.Utils;
    6866
    6967/**
     
    506504            JCheckBox deleteNotInList = new JCheckBox(tr("Disable all other plugins"));
    507505
    508             JLabel helpLabel = new JLabel("<html>" + Utils.join("<br/>", Arrays.asList(
     506            JLabel helpLabel = new JLabel("<html>" + String.join("<br/>",
    509507                    tr("Enter a list of plugins you want to download."),
    510508                    tr("You should add one plugin id per line, version information is ignored."),
    511                     tr("You can copy+paste the list of a status report here."))) + "</html>");
     509                    tr("You can copy+paste the list of a status report here.")) + "</html>");
    512510
    513511            if (JOptionPane.OK_OPTION == JOptionPane.showConfirmDialog(GuiHelper.getFrameForComponent(getTabPane()),
     
    559557
    560558        private boolean confirmIgnoreNotFound(List<String> notFound) {
    561             String list = "<ul><li>" + Utils.join("</li><li>", notFound) + "</li></ul>";
     559            String list = "<ul><li>" + String.join("</li><li>", notFound) + "</li></ul>";
    562560            String message = "<html>" + tr("The following plugins were not found. Continue anyway?") + list + "</html>";
    563561            return JOptionPane.showConfirmDialog(GuiHelper.getFrameForComponent(getTabPane()),
Note: See TracChangeset for help on using the changeset viewer.