From: Mateusz Warowny Date: Mon, 13 Mar 2023 14:45:33 +0000 (+0100) Subject: JAL-4139 Change calls to group(0) and end(0) to non-parametrised variants X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fmmw%2FJAL-4139-multi-harmony-patch;p=jalview.git JAL-4139 Change calls to group(0) and end(0) to non-parametrised variants --- diff --git a/src/jalview/ws/rest/RestServiceDescription.java b/src/jalview/ws/rest/RestServiceDescription.java index b07f3b6..af3ea86 100644 --- a/src/jalview/ws/rest/RestServiceDescription.java +++ b/src/jalview/ws/rest/RestServiceDescription.java @@ -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)