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
The following commit(s) were added to refs/heads/8.5.x by this push:
new 6a167f4af6 Unify constant delimiters and Refactoring for better
readability (#659)
6a167f4af6 is described below
commit 6a167f4af6a410534d932f889e222a4ec3fbca20
Author: Mooooooo <[email protected]>
AuthorDate: Wed Sep 6 21:36:34 2023 +0900
Unify constant delimiters and Refactoring for better readability (#659)
Use an existing constants & remove unnecessary code
Co-authored-by: Mark Thomas <[email protected]>
---
java/org/apache/catalina/manager/StatusTransformer.java | 17 ++++++++---------
1 file changed, 8 insertions(+), 9 deletions(-)
diff --git a/java/org/apache/catalina/manager/StatusTransformer.java
b/java/org/apache/catalina/manager/StatusTransformer.java
index 4fee0cfbd6..ebda5230e7 100644
--- a/java/org/apache/catalina/manager/StatusTransformer.java
+++ b/java/org/apache/catalina/manager/StatusTransformer.java
@@ -468,33 +468,32 @@ public class StatusTransformer {
switch (stage) {
- case (1/*org.apache.coyote.Constants.STAGE_PARSE*/):
+ case (org.apache.coyote.Constants.STAGE_PARSE):
stageStr = "P";
fullStatus = false;
break;
- case (2/*org.apache.coyote.Constants.STAGE_PREPARE*/):
+ case (org.apache.coyote.Constants.STAGE_PREPARE):
stageStr = "P";
fullStatus = false;
break;
- case (3/*org.apache.coyote.Constants.STAGE_SERVICE*/):
+ case (org.apache.coyote.Constants.STAGE_SERVICE):
stageStr = "S";
break;
- case (4/*org.apache.coyote.Constants.STAGE_ENDINPUT*/):
+ case (org.apache.coyote.Constants.STAGE_ENDINPUT):
stageStr = "F";
break;
- case (5/*org.apache.coyote.Constants.STAGE_ENDOUTPUT*/):
+ case (org.apache.coyote.Constants.STAGE_ENDOUTPUT):
stageStr = "F";
break;
- case (7/*org.apache.coyote.Constants.STAGE_ENDED*/):
+ case (org.apache.coyote.Constants.STAGE_ENDED):
stageStr = "R";
fullStatus = false;
break;
- case (6/*org.apache.coyote.Constants.STAGE_KEEPALIVE*/):
+ case (org.apache.coyote.Constants.STAGE_KEEPALIVE):
stageStr = "K";
- fullStatus = true;
showRequest = false;
break;
- case (0/*org.apache.coyote.Constants.STAGE_NEW*/):
+ case (org.apache.coyote.Constants.STAGE_NEW):
stageStr = "R";
fullStatus = false;
break;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]