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 44c8735e47 Improve formatting prior to running auto-format tools
44c8735e47 is described below
commit 44c8735e4720fb4d3aaabb91ee6599dfcb1d5376
Author: Mark Thomas <[email protected]>
AuthorDate: Wed Nov 8 10:13:10 2023 +0000
Improve formatting prior to running auto-format tools
---
java/org/apache/catalina/servlets/CGIServlet.java | 39 +++++++++++++----------
1 file changed, 22 insertions(+), 17 deletions(-)
diff --git a/java/org/apache/catalina/servlets/CGIServlet.java
b/java/org/apache/catalina/servlets/CGIServlet.java
index 03de8ca78a..06aae4b8fa 100644
--- a/java/org/apache/catalina/servlets/CGIServlet.java
+++ b/java/org/apache/catalina/servlets/CGIServlet.java
@@ -653,11 +653,12 @@ public final class CGIServlet extends HttpServlet {
}
- /**
+ /*
* Behaviour depends on the status code.
*
* Status < 400 - Calls setStatus. Returns false. CGI servlet will provide
* the response body.
+ *
* Status >= 400 - Calls sendError(status), returns true. Standard error
* page mechanism will provide the response body.
*/
@@ -1878,22 +1879,26 @@ public final class CGIServlet extends HttpServlet {
int i = input.read();
- // Update the state
- // State machine looks like this
- //
- // -------->--------
- // | (CR) |
- // | |
- // CR1--->--- |
- // | | |
- // ^(CR) |(LF) |
- // | | |
- // CHAR--->--LF1--->--EOH
- // (LF) | (LF) |
- // |(CR) ^(LF)
- // | |
- // (CR2)-->---
-
+ /*
+ * Update the state
+ * State machine looks like this
+ * @formatter:off
+ *
+ * -------->--------
+ * | (CR) |
+ * | |
+ * CR1--->--- |
+ * | | |
+ * ^(CR) |(LF) |
+ * | | |
+ * CHAR--->--LF1--->--EOH
+ * (LF) | (LF) |
+ * |(CR) ^(LF)
+ * | |
+ * (CR2)-->---
+ *
+ * @formatter:on
+ */
if (i == 10) {
// LF
switch(state) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]