You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2014/01/09 20:33:58 UTC

svn commit: r1556929 - in /tomcat/trunk/java/org/apache/coyote/http11: Http11AprProtocol.java Http11NioProtocol.java

Author: markt
Date: Thu Jan  9 19:33:58 2014
New Revision: 1556929

URL: http://svn.apache.org/r1556929
Log:
Remove unnecessary casts.

Modified:
    tomcat/trunk/java/org/apache/coyote/http11/Http11AprProtocol.java
    tomcat/trunk/java/org/apache/coyote/http11/Http11NioProtocol.java

Modified: tomcat/trunk/java/org/apache/coyote/http11/Http11AprProtocol.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http11/Http11AprProtocol.java?rev=1556929&r1=1556928&r2=1556929&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/http11/Http11AprProtocol.java (original)
+++ tomcat/trunk/java/org/apache/coyote/http11/Http11AprProtocol.java Thu Jan  9 19:33:58 2014
@@ -74,7 +74,7 @@ public class Http11AprProtocol extends A
 
     private final Http11ConnectionHandler cHandler;
 
-    public boolean getUseSendfile() { return ((AprEndpoint)endpoint).getUseSendfile(); }
+    public boolean getUseSendfile() { return endpoint.getUseSendfile(); }
     public void setUseSendfile(boolean useSendfile) { ((AprEndpoint)endpoint).setUseSendfile(useSendfile); }
 
     public int getPollTime() { return ((AprEndpoint)endpoint).getPollTime(); }

Modified: tomcat/trunk/java/org/apache/coyote/http11/Http11NioProtocol.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http11/Http11NioProtocol.java?rev=1556929&r1=1556928&r2=1556929&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/http11/Http11NioProtocol.java (original)
+++ tomcat/trunk/java/org/apache/coyote/http11/Http11NioProtocol.java Thu Jan  9 19:33:58 2014
@@ -124,7 +124,7 @@ public class Http11NioProtocol extends A
 
 
     public boolean getUseSendfile() {
-        return ((NioEndpoint)endpoint).getUseSendfile();
+        return endpoint.getUseSendfile();
     }
 
     public void setUseSendfile(boolean useSendfile) {



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org