Index: trunk/src/org/openstreetmap/josm/actions/search/SearchCompiler.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/search/SearchCompiler.java	(revision 12490)
+++ trunk/src/org/openstreetmap/josm/actions/search/SearchCompiler.java	(revision 12491)
@@ -1571,5 +1571,5 @@
         Preset(String presetName) throws ParseError {
 
-            if (presetName == null || presetName.equals("")) {
+            if (presetName == null || presetName.isEmpty()) {
                 throw new ParseError("The name of the preset is required");
             }
@@ -1587,5 +1587,5 @@
                     .stream()
                     .filter(preset -> !(preset instanceof TaggingPresetMenu || preset instanceof TaggingPresetSeparator))
-                    .filter(preset -> this.presetNameMatch(presetName, preset, matchStrictly))
+                    .filter(preset -> presetNameMatch(presetName, preset, matchStrictly))
                     .collect(Collectors.toList());
 
