This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 8.5.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit cac46fd88960e3e0ef616277d76c01e9c2c03933 Author: Mark Thomas <ma...@apache.org> AuthorDate: Thu Sep 15 16:32:51 2022 +0100 Formatting --- java/org/apache/coyote/ajp/Constants.java | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/java/org/apache/coyote/ajp/Constants.java b/java/org/apache/coyote/ajp/Constants.java index 355c7659dc..17e57a7fd8 100644 --- a/java/org/apache/coyote/ajp/Constants.java +++ b/java/org/apache/coyote/ajp/Constants.java @@ -81,8 +81,6 @@ public final class Constants { // Terminates list of attributes public static final byte SC_A_ARE_DONE = (byte)0xFF; - // Ajp13 specific - needs refactoring for the new model - /** * Default maximum total byte size for an AJP packet */ @@ -213,15 +211,13 @@ public final class Constants { return responseTransArray[code]; } - private static final Hashtable<String,Integer> responseTransHash = - new Hashtable<>(20); + private static final Hashtable<String,Integer> responseTransHash = new Hashtable<>(20); static { try { int i; for (i = 0; i < SC_RESP_AJP13_MAX; i++) { - responseTransHash.put(getResponseHeaderForCode(i), - Integer.valueOf(0xA001 + i)); + responseTransHash.put(getResponseHeaderForCode(i), Integer.valueOf(0xA001 + i)); } } catch (Exception e) { @@ -229,8 +225,7 @@ public final class Constants { } } - public static final int getResponseAjpIndex(String header) - { + public static final int getResponseAjpIndex(String header) { Integer i = responseTransHash.get(header); if (i == null) { return 0; --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org