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 67c37e4 Optimize if condition
67c37e4 is described below
commit 67c37e414c3c3f242818c28cfa3d6dc448e32a5c
Author: lan <[email protected]>
AuthorDate: Thu Dec 17 10:37:21 2020 +0800
Optimize if condition
(cherry picked from commit 92eabe5b666f3a6c699ef70bb64be0e8716d006a)
---
java/org/apache/coyote/AbstractProtocol.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/java/org/apache/coyote/AbstractProtocol.java
b/java/org/apache/coyote/AbstractProtocol.java
index 092fcf3..79b4a87 100644
--- a/java/org/apache/coyote/AbstractProtocol.java
+++ b/java/org/apache/coyote/AbstractProtocol.java
@@ -616,7 +616,7 @@ public abstract class AbstractProtocol<S> implements
ProtocolHandler,
* is triggered independently of the socket read/write timeouts.
*/
protected void startAsyncTimeout() {
- if (timeoutFuture == null || (timeoutFuture != null &&
timeoutFuture.isDone())) {
+ if (timeoutFuture == null || timeoutFuture.isDone()) {
if (timeoutFuture != null && timeoutFuture.isDone()) {
// There was an error executing the scheduled task, get it and
log it
try {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]