Changeset 9981 in josm for trunk/src/org/openstreetmap/josm/actions/search/SearchCompiler.java
- Timestamp:
- 2016-03-13T17:25:42+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/search/SearchCompiler.java
r9952 r9981 323 323 // "operator" (null) should mean the same as "operator()" 324 324 // (Always). I.e. match everything 325 this.match = new Always();325 this.match = Always.INSTANCE; 326 326 } else { 327 327 this.match = match; … … 372 372 */ 373 373 public static class Never extends TaggedMatch { 374 /** The unique instance/ */ 375 public static final Never INSTANCE = new Never(); 374 376 @Override 375 377 public boolean match(Tagged osm) { … … 1612 1614 throw new ParseError(tr("Unexpected token: {0}", tokenizer.nextToken())); 1613 1615 if (m == null) 1614 m = new Always();1616 m = Always.INSTANCE; 1615 1617 Main.debug("Parsed search expression is {0}", m); 1616 1618 return m;
Note:
See TracChangeset
for help on using the changeset viewer.