Ignore:
Timestamp:
2013-10-07T20:18:17+02:00 (11 years ago)
Author:
Don-vip
Message:

Sonar/FindBugs - Loose coupling

Location:
trunk/src/org/openstreetmap/josm/gui/preferences
Files:
6 edited

Legend:

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

    r6248 r6316  
    465465
    466466        public List<ExtendedSourceEntry> getSelected() {
    467             ArrayList<ExtendedSourceEntry> ret = new ArrayList<ExtendedSourceEntry>();
     467            List<ExtendedSourceEntry> ret = new ArrayList<ExtendedSourceEntry>();
    468468            for(int i=0; i<data.size();i++) {
    469469                if (selectionModel.isSelectedIndex(i)) {
     
    998998
    999999    protected static class IconPathTableModel extends AbstractTableModel {
    1000         private ArrayList<String> data;
     1000        private List<String> data;
    10011001        private DefaultListSelectionModel selectionModel;
    10021002
  • trunk/src/org/openstreetmap/josm/gui/preferences/advanced/AdvancedPreference.java

    r6296 r6316  
    200200
    201201    private void exportSelectedToXML() {
    202         ArrayList<String> keys = new ArrayList<String>();
     202        List<String> keys = new ArrayList<String>();
    203203        boolean hasLists = false;
    204204
  • trunk/src/org/openstreetmap/josm/gui/preferences/advanced/ExportProfileAction.java

    r6248 r6316  
    77import java.io.File;
    88import java.util.ArrayList;
     9import java.util.List;
    910import java.util.Map;
    1011
     
    3738    @Override
    3839    public void actionPerformed(ActionEvent ae) {
    39         ArrayList<String> keys = new ArrayList<String>();
     40        List<String> keys = new ArrayList<String>();
    4041        Map<String, Setting> all = prefs.getAllSettings();
    4142        for (String key: all.keySet()) {
  • trunk/src/org/openstreetmap/josm/gui/preferences/display/ColorPreference.java

    r6084 r6316  
    1212import java.util.ArrayList;
    1313import java.util.HashMap;
     14import java.util.List;
    1415import java.util.Map;
    1516import java.util.Map.Entry;
     
    6061    private DefaultTableModel tableModel;
    6162    private JTable colors;
    62     private ArrayList<String> del = new ArrayList<String>();
     63    private List<String> del = new ArrayList<String>();
    6364
    6465    JButton colorEdit;
  • trunk/src/org/openstreetmap/josm/gui/preferences/projection/UTMProjectionChoice.java

    r6295 r6316  
    110110    @Override
    111111    public String[] allCodes() {
    112         ArrayList<String> projections = new ArrayList<String>(60*4);
     112        List<String> projections = new ArrayList<String>(60*4);
    113113        for (int zone = 1;zone <= 60; zone++) {
    114114            for (Hemisphere hemisphere : Hemisphere.values()) {
  • trunk/src/org/openstreetmap/josm/gui/preferences/shortcut/PrefJPanel.java

    r6248 r6316  
    1616import java.util.ArrayList;
    1717import java.util.LinkedHashMap;
     18import java.util.List;
    1819import java.util.Map;
    1920import java.util.regex.PatternSyntaxException;
     
    373374                    expr = expr.replace("+", "\\+");
    374375                    // split search string on whitespace, do case-insensitive AND search
    375                     ArrayList<RowFilter<Object, Object>> andFilters = new ArrayList<RowFilter<Object, Object>>();
     376                    List<RowFilter<Object, Object>> andFilters = new ArrayList<RowFilter<Object, Object>>();
    376377                    for (String word : expr.split("\\s+")) {
    377378                        andFilters.add(RowFilter.regexFilter("(?i)" + word));
Note: See TracChangeset for help on using the changeset viewer.