JAL-4139 Change calls to group(0) and end(0) to non-parametrised variants mmw/JAL-4139-multi-harmony-patch
authorMateusz Warowny <mmzwarowny@dundee.ac.uk>
Mon, 13 Mar 2023 14:45:33 +0000 (15:45 +0100)
committerMateusz Warowny <mmzwarowny@dundee.ac.uk>
Mon, 13 Mar 2023 14:45:33 +0000 (15:45 +0100)
src/jalview/ws/rest/RestServiceDescription.java

index b07f3b6..af3ea86 100644 (file)
@@ -625,10 +625,10 @@ public class RestServiceDescription
     InputType jinput;
     while (prms.find())
     {
-      if (lastp < prms.start(0))
+      if (lastp < prms.start())
       {
-        url += ipurl.substring(lastp, prms.start(0));
-        lastp = prms.end(0) + 1;
+        url += ipurl.substring(lastp, prms.start());
+        lastp = prms.end() + 1;
       }
       String sep = prms.group(1);
       String tok = prms.group(2);
@@ -640,7 +640,7 @@ public class RestServiceDescription
         iprmparams = iprm.substring(colon + 1);
         iprm = iprm.substring(0, colon);
       }
-      valid = parseTypeString(prms.group(0), tok, iprm, iprmparams, iparams,
+      valid = parseTypeString(prms.group(), tok, iprm, iprmparams, iparams,
               warnings);
     }
     if (valid)