Index: trunk/src/org/openstreetmap/josm/actions/search/SearchCompiler.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/search/SearchCompiler.java	(revision 12466)
+++ trunk/src/org/openstreetmap/josm/actions/search/SearchCompiler.java	(revision 12467)
@@ -1575,5 +1575,5 @@
             }
 
-            int wildCardIdx = presetName.lastIndexOf("*");
+            int wildCardIdx = presetName.lastIndexOf('*');
             int length = presetName.length() - 1;
 
