Changeset 7005 in josm for trunk/src/org/openstreetmap/josm/actions/search
- Timestamp:
- 2014-04-26T17:39:23+02:00 (10 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/actions/search
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/search/SearchAction.java
r6844 r7005 84 84 } 85 85 86 private static final LinkedList<SearchSetting> searchHistory = new LinkedList< SearchSetting>();86 private static final LinkedList<SearchSetting> searchHistory = new LinkedList<>(); 87 87 static { 88 88 for (String s: Main.pref.getCollection("search.history", Collections.<String>emptyList())) { … … 110 110 searchHistory.removeLast(); 111 111 } 112 LinkedHashSet<String> savedHistory = new LinkedHashSet< String>(searchHistory.size());112 LinkedHashSet<String> savedHistory = new LinkedHashSet<>(searchHistory.size()); 113 113 for (SearchSetting item: searchHistory) { 114 114 savedHistory.add(item.writeToString()); … … 118 118 119 119 public static List<String> getSearchExpressionHistory() { 120 List<String> ret = new ArrayList< String>(getSearchHistory().size());120 List<String> ret = new ArrayList<>(getSearchHistory().size()); 121 121 for (SearchSetting ss: getSearchHistory()) { 122 122 ret.add(ss.text); … … 582 582 583 583 final DataSet ds = Main.main.getCurrentDataSet(); 584 Collection<OsmPrimitive> sel = new HashSet< OsmPrimitive>(ds.getAllSelected());584 Collection<OsmPrimitive> sel = new HashSet<>(ds.getAllSelected()); 585 585 int foundMatches = getSelection(s, sel, new Predicate<OsmPrimitive>(){ 586 586 @Override -
trunk/src/org/openstreetmap/josm/actions/search/SearchCompiler.java
r6990 r7005 59 59 private static String rxErrorMsgNoPos = marktr("The regex \"{0}\" had a parse error, full error:\n\n{1}"); 60 60 private PushbackTokenizer tokenizer; 61 private static Map<String, SimpleMatchFactory> simpleMatchFactoryMap = new HashMap< String, SimpleMatchFactory>();62 private static Map<String, UnaryMatchFactory> unaryMatchFactoryMap = new HashMap< String, UnaryMatchFactory>();63 private static Map<String, BinaryMatchFactory> binaryMatchFactoryMap = new HashMap< String, BinaryMatchFactory>();61 private static Map<String, SimpleMatchFactory> simpleMatchFactoryMap = new HashMap<>(); 62 private static Map<String, UnaryMatchFactory> unaryMatchFactoryMap = new HashMap<>(); 63 private static Map<String, BinaryMatchFactory> binaryMatchFactoryMap = new HashMap<>(); 64 64 65 65 public SearchCompiler(boolean caseSensitive, boolean regexSearch, PushbackTokenizer tokenizer) {
Note:
See TracChangeset
for help on using the changeset viewer.