Index: trunk/src/org/openstreetmap/josm/data/validation/tests/OpeningHourTest.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/validation/tests/OpeningHourTest.java	(revision 13297)
+++ trunk/src/org/openstreetmap/josm/data/validation/tests/OpeningHourTest.java	(revision 13298)
@@ -289,11 +289,10 @@
     /**
      * Translates and shortens the error/warning message.
-     * @param key OSM key
      * @param o error/warning message returned by {@link #getOpeningHoursErrors} or {@link #getOpeningHoursWarnings}
      * @return translated/shortened error/warning message
-     * @since 13297
-     */
-    public static String getErrorMessage(String key, Object o) {
-        String msg = o.toString().trim()
+     * @since 13298
+     */
+    public static String getErrorMessage(Object o) {
+        return o.toString().trim()
         .replace("Unexpected token:", tr("Unexpected token:"))
         .replace("Unexpected token (school holiday parser):", tr("Unexpected token (school holiday parser):"))
@@ -304,5 +303,14 @@
         .replace("Unexpected token in year range:", tr("Unexpected token in year range:"))
         .replace("This means that the syntax is not valid at that point or it is currently not supported.", tr("Invalid/unsupported syntax."));
-        return key + " - " + msg;
+    }
+
+    /**
+     * Translates and shortens the error/warning message.
+     * @param key OSM key
+     * @param o error/warning message returned by {@link #getOpeningHoursErrors} or {@link #getOpeningHoursWarnings}
+     * @return translated/shortened error/warning message
+     */
+    static String getErrorMessage(String key, Object o) {
+        return key + " - " + getErrorMessage(o);
     }
 
