Ignore:
Timestamp:
2018-10-17T02:57:45+02:00 (6 years ago)
Author:
Don-vip
Message:

see #16755 - fix sonarqube warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/layer/MergeGpxLayerDialog.java

    r14338 r14341  
    4343    private final JTable t;
    4444    private final JCheckBox c;
    45     private final Component parent;
    4645    private final JButton btnUp;
    4746    private final JButton btnDown;
     
    5554        super(parent, tr("Merge GPX layers"), tr("Merge"), tr("Cancel"));
    5655        setButtonIcons("dialogs/mergedown", "cancel");
    57         this.parent = parent;
    5856
    5957        JPanel p = new JPanel(new GridBagLayout());
     
    137135                    && (!ConditionalOptionPaneUtil.showConfirmationDialog(
    138136                            "gpx_target_change",
    139                             parent,
     137                            getParent(),
    140138                            new JLabel("<html>" +
    141139                                    tr("This will change the target layer to \"{0}\".<br>Would you like to continue?",
     
    185183        public int getRowCount() {
    186184            return layers.size();
    187 
    188         }
    189 
    190         public void moveRow(int row, int newRow) {
     185        }
     186
     187        void moveRow(int row, int newRow) {
    191188            Collections.swap(layers, row, newRow);
    192189        }
    193190
    194         public List<GpxLayer> getSortedLayers() {
     191        List<GpxLayer> getSortedLayers() {
    195192            return layers;
    196193        }
     
    210207            case 2:
    211208                return layers.get(row).data.getTrackSegsCount();
     209            default:
     210                throw new IndexOutOfBoundsException(Integer.toString(col));
    212211            }
    213             throw new IndexOutOfBoundsException(Integer.toString(col));
    214212        }
    215213    }
Note: See TracChangeset for help on using the changeset viewer.