This is an automated email from the ASF dual-hosted git repository.

markt 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 21ee1c0  Add comment to unreachable code
21ee1c0 is described below

commit 21ee1c0b33aed7908a7aa5f415ff8775cfd92119
Author: Mark Thomas <[email protected]>
AuthorDate: Fri May 17 17:25:09 2019 +0100

    Add comment to unreachable code
    
    Identified by Coverity Scan
---
 java/org/apache/tomcat/websocket/server/WsRemoteEndpointImplServer.java | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/java/org/apache/tomcat/websocket/server/WsRemoteEndpointImplServer.java 
b/java/org/apache/tomcat/websocket/server/WsRemoteEndpointImplServer.java
index 0cd91ef..cdf0e82 100644
--- a/java/org/apache/tomcat/websocket/server/WsRemoteEndpointImplServer.java
+++ b/java/org/apache/tomcat/websocket/server/WsRemoteEndpointImplServer.java
@@ -81,6 +81,7 @@ public class WsRemoteEndpointImplServer extends 
WsRemoteEndpointImplBase {
             } else {
                 this.handler = handler;
                 if (timeout > 0) {
+                    // TODO This block in unreachable
                     // Register with timeout thread
                     timeoutExpiry = timeout + System.currentTimeMillis();
                     wsWriteTimeout.register(this);


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to