From ce0b7a6c34cd7b2a46419ac8f303204dca03f816 Mon Sep 17 00:00:00 2001 From: Mateusz Warowny Date: Mon, 13 Mar 2023 15:45:33 +0100 Subject: [PATCH] JAL-4139 Change calls to group(0) and end(0) to non-parametrised variants --- src/jalview/ws/rest/RestServiceDescription.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) -- 1.7.10.2