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

fix some unused code warnings

Location:
trunk/src/org/openstreetmap/josm/gui/dialogs/properties
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/properties/RecentTagCollection.java

    r9940 r9981  
    2626            }
    2727        };
    28         tagsToIgnore = new SearchCompiler.Never();
     28        tagsToIgnore = SearchCompiler.Never.INSTANCE;
    2929    }
    3030
     
    7373
    7474    public void setTagsToIgnore(SearchAction.SearchSetting tagsToIgnore) throws SearchCompiler.ParseError {
    75         setTagsToIgnore(tagsToIgnore.text.isEmpty() ? new SearchCompiler.Never() : SearchCompiler.compile(tagsToIgnore));
     75        setTagsToIgnore(tagsToIgnore.text.isEmpty() ? SearchCompiler.Never.INSTANCE : SearchCompiler.compile(tagsToIgnore));
    7676    }
    7777
  • trunk/src/org/openstreetmap/josm/gui/dialogs/properties/TagEditHelper.java

    r9940 r9981  
    310310                warnAboutParseError(parseError);
    311311                tagsToIgnore = new SearchAction.SearchSetting();
    312                 recentTags.setTagsToIgnore(new SearchCompiler.Never());
     312                recentTags.setTagsToIgnore(SearchCompiler.Never.INSTANCE);
    313313            }
    314314        }
Note: See TracChangeset for help on using the changeset viewer.