This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push: new 83ecc67 Code cleanup: Add races for clarity. 83ecc67 is described below commit 83ecc674f7a2c5b805fa2200afdca5f57af3a1fb Author: Mark Thomas <ma...@apache.org> AuthorDate: Mon May 24 16:41:35 2021 +0100 Code cleanup: Add races for clarity. Small fix to test CI --- java/jakarta/servlet/http/HttpUtils.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/java/jakarta/servlet/http/HttpUtils.java b/java/jakarta/servlet/http/HttpUtils.java index 17acf86..279eb38 100644 --- a/java/jakarta/servlet/http/HttpUtils.java +++ b/java/jakarta/servlet/http/HttpUtils.java @@ -159,8 +159,9 @@ public class HttpUtils { // should a length of 0 be an IllegalArgumentException // cheap hack to return an empty hash - if (len <=0) + if (len <= 0) { return new Hashtable<>(); + } if (in == null) { throw new IllegalArgumentException(); @@ -221,8 +222,9 @@ public class HttpUtils { } catch (StringIndexOutOfBoundsException e) { String rest = s.substring(i); sb.append(rest); - if (rest.length()==2) + if (rest.length() == 2) { i++; + } } break; --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org