Index: /trunk/src/org/openstreetmap/josm/Main.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/Main.java	(revision 8798)
+++ /trunk/src/org/openstreetmap/josm/Main.java	(revision 8799)
@@ -1136,5 +1136,5 @@
      * @see #paramType
      */
-    private enum DownloadParamType { httpUrl, fileUrl, bounds, fileName }
+    enum DownloadParamType { httpUrl, fileUrl, bounds, fileName }
 
     /**
@@ -1143,9 +1143,9 @@
      * @return The guessed parameter type
      */
-    private static DownloadParamType paramType(String s) {
+    static DownloadParamType paramType(String s) {
         if (s.startsWith("http:") || s.startsWith("https:")) return DownloadParamType.httpUrl;
         if (s.startsWith("file:")) return DownloadParamType.fileUrl;
         String coorPattern = "\\s*[+-]?[0-9]+(\\.[0-9]+)?\\s*";
-        if (s.matches(coorPattern+"(,"+coorPattern+") {3}")) return DownloadParamType.bounds;
+        if (s.matches(coorPattern+"(,"+coorPattern+"){3}")) return DownloadParamType.bounds;
         // everything else must be a file name
         return DownloadParamType.fileName;
Index: /trunk/test/unit/org/openstreetmap/josm/MainTest.java
===================================================================
--- /trunk/test/unit/org/openstreetmap/josm/MainTest.java	(revision 8799)
+++ /trunk/test/unit/org/openstreetmap/josm/MainTest.java	(revision 8799)
@@ -0,0 +1,15 @@
+// License: GPL. For details, see LICENSE file.
+package org.openstreetmap.josm;
+
+import static org.hamcrest.CoreMatchers.is;
+import static org.junit.Assert.assertThat;
+
+import org.junit.Test;
+
+public class MainTest {
+    @Test
+    public void testParamType() throws Exception {
+        assertThat(Main.paramType("48.000,16.000,48.001,16.001"), is(Main.DownloadParamType.bounds));
+
+    }
+}
