This is an automated email from the ASF dual-hosted git repository.
mgrigorov pushed a commit to branch 7.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/7.0.x by this push:
new fce3e29 Change 'if' to 'else if'
fce3e29 is described below
commit fce3e29b1325073e8495b11e738138545aecb036
Author: Martin Tzvetanov Grigorov <[email protected]>
AuthorDate: Tue Aug 25 14:29:13 2020 +0300
Change 'if' to 'else if'
b[pos] cannot be both '\\' and 0, so there is no need to make the second
check if it was '\\'
---
java/org/apache/catalina/connector/CoyoteAdapter.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/java/org/apache/catalina/connector/CoyoteAdapter.java
b/java/org/apache/catalina/connector/CoyoteAdapter.java
index ab4551e..bbccac9 100644
--- a/java/org/apache/catalina/connector/CoyoteAdapter.java
+++ b/java/org/apache/catalina/connector/CoyoteAdapter.java
@@ -1287,8 +1287,7 @@ public class CoyoteAdapter implements Adapter {
} else {
return false;
}
- }
- if (b[pos] == (byte) 0) {
+ } else if (b[pos] == (byte) 0) {
return false;
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]