- Timestamp:
- 2018-06-04T00:50:29+02:00 (6 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/osm/search
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/search/SearchCompiler.java
r13876 r13887 89 89 } 90 90 91 /** 92 * Constructs a new {@code SearchCompiler}. 93 * @param caseSensitive {@code true} to perform a case-sensitive search 94 * @param regexSearch {@code true} to perform a regex-based search 95 * @param tokenizer to split the search string into tokens 96 */ 91 97 public SearchCompiler(boolean caseSensitive, boolean regexSearch, PushbackTokenizer tokenizer) { 92 98 this.caseSensitive = caseSensitive; … … 276 282 */ 277 283 public boolean match(Tagged tagged) { 278 return tagged instanceof OsmPrimitive ? match((OsmPrimitive) tagged) : false;284 return tagged instanceof OsmPrimitive && match((OsmPrimitive) tagged); 279 285 } 280 286 -
trunk/src/org/openstreetmap/josm/data/osm/search/SearchSetting.java
r12659 r13887 14 14 */ 15 15 public class SearchSetting { 16 /** Search text */ 16 17 public String text; 18 /** Search mode */ 17 19 public SearchMode mode; 20 /** {@code true} to perform a case-sensitive search */ 18 21 public boolean caseSensitive; 22 /** {@code true} to perform a regex-based search */ 19 23 public boolean regexSearch; 24 /** {@code true} to execute a MapCSS selector */ 20 25 public boolean mapCSSSearch; 26 /** {@code true} to include all objects (even incomplete and deleted ones) */ 21 27 public boolean allElements; 22 28
Note:
See TracChangeset
for help on using the changeset viewer.