This is an automated email from the ASF dual-hosted git repository.
mgrigorov pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new 58ad906 Change 'if' to 'else if'
58ad906 is described below
commit 58ad906ef5b42e85b672ea327ca357592be9b0aa
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 915a2c6..4303620 100644
--- a/java/org/apache/catalina/connector/CoyoteAdapter.java
+++ b/java/org/apache/catalina/connector/CoyoteAdapter.java
@@ -1166,8 +1166,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]