Ignore:
Timestamp:
2014-10-18T23:07:52+02:00 (10 years ago)
Author:
donvip
Message:

[josm_plugins] fix Java 7 / unused code warnings

Location:
applications/editors/josm/plugins/tageditor/src/org/openstreetmap/josm/plugins/tageditor
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/tageditor/src/org/openstreetmap/josm/plugins/tageditor/ac/AutoCompletionListViewer.java

    r29854 r30737  
    9494        this.autoCompletionList = list;
    9595        createGUI();
    96         listener = new ArrayList<IAutoCompletionListListener>();
     96        listener = new ArrayList<>();
    9797    }
    9898   
     
    103103        this.autoCompletionList = null;
    104104        createGUI();
    105         listener = new ArrayList<IAutoCompletionListListener>();
     105        listener = new ArrayList<>();
    106106    }
    107107
  • applications/editors/josm/plugins/tageditor/src/org/openstreetmap/josm/plugins/tageditor/editor/TagEditorModel.java

    r30488 r30737  
    147147     */
    148148    public void updateJOSMSelection() {
    149         ArrayList<Command> commands = new ArrayList<Command>();
     149        ArrayList<Command> commands = new ArrayList<>();
    150150        Collection<OsmPrimitive> selection = Main.main.getCurrentDataSet().getSelected();
    151151        if (selection == null)
  • applications/editors/josm/plugins/tageditor/src/org/openstreetmap/josm/plugins/tageditor/preset/ui/PresetsTableModel.java

    r30488 r30737  
    1414    //private static final Logger logger = Logger.getLogger(PresetsTableModel.class.getName());
    1515
    16     private final ArrayList<TableModelListener> listeners = new ArrayList<TableModelListener>();
    17     private final ArrayList<TaggingPreset> items = new ArrayList<TaggingPreset>();
    18     private final ArrayList<TaggingPreset> visibleItems = new ArrayList<TaggingPreset>();
     16    private final ArrayList<TableModelListener> listeners = new ArrayList<>();
     17    private final ArrayList<TaggingPreset> items = new ArrayList<>();
     18    private final ArrayList<TaggingPreset> visibleItems = new ArrayList<>();
    1919
    2020    protected void initModelFromPresets(Collection<TaggingPreset> presets) {
  • applications/editors/josm/plugins/tageditor/src/org/openstreetmap/josm/plugins/tageditor/preset/ui/TabularPresetSelector.java

    r30488 r30737  
    4040    private PresetsTable presetsTable = null;
    4141    private JTextField   tfFilter = null;
    42     private final ArrayList<IPresetSelectorListener> listeners = new ArrayList<IPresetSelectorListener>();
     42    private final ArrayList<IPresetSelectorListener> listeners = new ArrayList<>();
    4343    private JScrollPane scrollPane;
    4444    private JButton btnApply;
  • applications/editors/josm/plugins/tageditor/src/org/openstreetmap/josm/plugins/tageditor/tagspec/TagSpecification.java

    r30488 r30737  
    3939     */
    4040    public TagSpecification() {
    41         lables = new ArrayList<LabelSpecification>();
     41        lables = new ArrayList<>();
    4242    }
    4343
  • applications/editors/josm/plugins/tageditor/src/org/openstreetmap/josm/plugins/tageditor/tagspec/TagSpecifications.java

    r30488 r30737  
    9191     */
    9292    public TagSpecifications() {
    93         tagSpecifications = new ArrayList<TagSpecification>();
     93        tagSpecifications = new ArrayList<>();
    9494    }
    9595
     
    125125
    126126    public List<AutoCompletionListItem> getKeysForAutoCompletion(AutoCompletionContext context) {
    127         ArrayList<AutoCompletionListItem> keys = new ArrayList<AutoCompletionListItem>();
     127        ArrayList<AutoCompletionListItem> keys = new ArrayList<>();
    128128        for (TagSpecification spec : tagSpecifications) {
    129129            if (!spec.isApplicable(context)) {
     
    139139
    140140    public List<AutoCompletionListItem> getLabelsForAutoCompletion(String forKey, AutoCompletionContext context) {
    141         ArrayList<AutoCompletionListItem> items = new ArrayList<AutoCompletionListItem>();
     141        ArrayList<AutoCompletionListItem> items = new ArrayList<>();
    142142        for (TagSpecification spec : tagSpecifications) {
    143143            if (spec.getKey().equals(forKey)) {
     
    164164     */
    165165    public ArrayList<KeyValuePair> asList() {
    166         ArrayList<KeyValuePair> entries = new ArrayList<KeyValuePair>();
     166        ArrayList<KeyValuePair> entries = new ArrayList<>();
    167167
    168168        for (TagSpecification s : tagSpecifications) {
     
    233233         */
    234234        protected void startElementOsmTagDefinitions(Attributes atts) throws SAXException {
    235             tagSpecifications = new ArrayList<TagSpecification>();
     235            tagSpecifications = new ArrayList<>();
    236236        }
    237237
  • applications/editors/josm/plugins/tageditor/src/org/openstreetmap/josm/plugins/tageditor/tagspec/ui/TabularTagSelector.java

    r30703 r30737  
    3838    private JButton btnApply;
    3939    private JScrollPane scrollPane;
    40     private final ArrayList<ITagSelectorListener> listeners = new ArrayList<ITagSelectorListener>();
     40    private final ArrayList<ITagSelectorListener> listeners = new ArrayList<>();
    4141
    4242    protected JPanel buildFilterPanel() {
  • applications/editors/josm/plugins/tageditor/src/org/openstreetmap/josm/plugins/tageditor/tagspec/ui/TagsTableModel.java

    r30488 r30737  
    2323
    2424    public TagsTableModel() {
    25         items = new ArrayList<KeyValuePair>();
    26         visibleItems = new ArrayList<KeyValuePair>();
     25        items = new ArrayList<>();
     26        visibleItems = new ArrayList<>();
    2727    }
    2828
Note: See TracChangeset for help on using the changeset viewer.