Changeset 7005 in josm for trunk/src/org/openstreetmap/josm/gui/download
- Timestamp:
- 2014-04-26T17:39:23+02:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/download
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/download/BookmarkList.java
r7001 r7005 52 52 */ 53 53 public Bookmark(Collection<String> list) throws NumberFormatException, IllegalArgumentException { 54 List<String> array = new ArrayList< String>(list);54 List<String> array = new ArrayList<>(list); 55 55 if(array.size() < 5) 56 56 throw new IllegalArgumentException(tr("Wrong number of arguments for bookmark")); … … 167 167 Collection<Collection<String>> args = Main.pref.getArray("bookmarks", null); 168 168 if(args != null) { 169 LinkedList<Bookmark> bookmarks = new LinkedList< Bookmark>();169 LinkedList<Bookmark> bookmarks = new LinkedList<>(); 170 170 for(Collection<String> entry : args) { 171 171 try { … … 184 184 File bookmarkFile = new File(Main.pref.getPreferencesDir(),"bookmarks"); 185 185 try { 186 LinkedList<Bookmark> bookmarks = new LinkedList< Bookmark>();186 LinkedList<Bookmark> bookmarks = new LinkedList<>(); 187 187 if (bookmarkFile.exists()) { 188 188 Main.info("Try loading obsolete bookmarks file"); … … 240 240 */ 241 241 public final void save() { 242 LinkedList<Collection<String>> coll = new LinkedList< Collection<String>>();242 LinkedList<Collection<String>> coll = new LinkedList<>(); 243 243 for (Object o : ((DefaultListModel<Bookmark>)getModel()).toArray()) { 244 244 String[] array = new String[5]; -
trunk/src/org/openstreetmap/josm/gui/download/DownloadDialog.java
r6890 r7005 67 67 68 68 protected SlippyMapChooser slippyMapChooser; 69 protected final List<DownloadSelection> downloadSelections = new ArrayList< DownloadSelection>();69 protected final List<DownloadSelection> downloadSelections = new ArrayList<>(); 70 70 protected final JTabbedPane tpDownloadAreaSelectors = new JTabbedPane(); 71 71 protected JCheckBox cbNewLayer; -
trunk/src/org/openstreetmap/josm/gui/download/PlaceSelection.java
r6990 r7005 110 110 cbSearchExpression = new HistoryComboBox(); 111 111 cbSearchExpression.setToolTipText(tr("Enter a place name to search for")); 112 List<String> cmtHistory = new LinkedList< String>(Main.pref.getCollection(HISTORY_KEY, new LinkedList<String>()));112 List<String> cmtHistory = new LinkedList<>(Main.pref.getCollection(HISTORY_KEY, new LinkedList<String>())); 113 113 Collections.reverse(cmtHistory); 114 114 cbSearchExpression.setPossibleItems(cmtHistory); … … 195 195 private StringBuffer description = null; 196 196 private int depth = 0; 197 private List<SearchResult> data = new LinkedList< SearchResult>();197 private List<SearchResult> data = new LinkedList<>(); 198 198 199 199 /** … … 389 389 390 390 public NamedResultTableModel(ListSelectionModel selectionModel) { 391 data = new ArrayList< SearchResult>();391 data = new ArrayList<>(); 392 392 this.selectionModel = selectionModel; 393 393 } … … 408 408 this.data.clear(); 409 409 } else { 410 this.data =new ArrayList<SearchResult>(data);410 this.data = new ArrayList<>(data); 411 411 } 412 412 fireTableDataChanged();
Note:
See TracChangeset
for help on using the changeset viewer.