Ignore:
Timestamp:
2016-03-13T17:25:42+01:00 (4 years ago)
Author:
Don-vip
Message:

fix some unused code warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/search/SearchCompiler.java

    r9952 r9981  
    323323                // "operator" (null) should mean the same as "operator()"
    324324                // (Always). I.e. match everything
    325                 this.match = new Always();
     325                this.match = Always.INSTANCE;
    326326            } else {
    327327                this.match = match;
     
    372372     */
    373373    public static class Never extends TaggedMatch {
     374        /** The unique instance/ */
     375        public static final Never INSTANCE = new Never();
    374376        @Override
    375377        public boolean match(Tagged osm) {
     
    16121614            throw new ParseError(tr("Unexpected token: {0}", tokenizer.nextToken()));
    16131615        if (m == null)
    1614             m = new Always();
     1616            m = Always.INSTANCE;
    16151617        Main.debug("Parsed search expression is {0}", m);
    16161618        return m;
Note: See TracChangeset for help on using the changeset viewer.