Ignore:
Timestamp:
2014-04-15T00:43:24+02:00 (10 years ago)
Author:
Don-vip
Message:

fix some sonar issues recently introduced

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/io/DownloadPrimitivesWithReferrersTask.java

    r6973 r6977  
    7575        // All downloaded primitives are put in a tmpLayer
    7676        tmpLayer = new OsmDataLayer(new DataSet(), OsmDataLayer.createNewName(), null);
    77         //Main.main.addLayer(tmpLayer);
    7877    }
    7978
     
    194193     * Dialog for report a problem during download.
    195194     * @param errs Primitives involved
    196      * @param TITLE Title of dialog
    197      * @param TEXT Detail message
    198      * @param LIST_LABEL List of primitives description
    199      * @param msgType Type of message {@see JOptionPane}
     195     * @param title Title of dialog
     196     * @param text Detail message
     197     * @param listLabel List of primitives description
     198     * @param msgType Type of message, see {@link JOptionPane}
    200199     * @return The Dialog object
    201200     */
    202201    private static ExtendedDialog reportProblemDialog(Set<PrimitiveId> errs,
    203             String TITLE, String TEXT, String LIST_LABEL, int msgType) {
     202            String title, String text, String listLabel, int msgType) {
    204203        JPanel p = new JPanel(new GridBagLayout());
    205         p.add(new HtmlPanel(TEXT), GBC.eop());
    206         if (LIST_LABEL != null) {
    207             JLabel missing = new JLabel(LIST_LABEL);
     204        p.add(new HtmlPanel(text), GBC.eop());
     205        if (listLabel != null) {
     206            JLabel missing = new JLabel(listLabel);
    208207            missing.setFont(missing.getFont().deriveFont(Font.PLAIN));
    209208            p.add(missing, GBC.eol());
     
    221220        return new ExtendedDialog(
    222221                Main.parent,
    223                 TITLE,
     222                title,
    224223                new String[] { tr("Ok") })
    225224        .setButtonIcons(new String[] { "ok" })
Note: See TracChangeset for help on using the changeset viewer.