You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2022/09/15 15:32:56 UTC
[tomcat] branch main updated: Formatting
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 a0dce6fdfb Formatting
a0dce6fdfb is described below
commit a0dce6fdfbb6a116f66694ce730571b8466da37b
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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org