This is an automated email from the ASF dual-hosted git repository.
mgrigorov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/master by this push:
new 3042fb3 Change 'if' to 'else if'
3042fb3 is described below
commit 3042fb3088577b098dbe456cdfa7a79569a92d8a
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 09dcb05..d93b450 100644
--- a/java/org/apache/catalina/connector/CoyoteAdapter.java
+++ b/java/org/apache/catalina/connector/CoyoteAdapter.java
@@ -1159,8 +1159,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]