You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by fs...@apache.org on 2016/03/13 15:48:21 UTC

svn commit: r1734815 - /tomcat/tc8.5.x/trunk/test/org/apache/coyote/http11/upgrade/TestUpgradeInternalHandler.java

Author: fschumacher
Date: Sun Mar 13 14:48:21 2016
New Revision: 1734815

URL: http://svn.apache.org/viewvc?rev=1734815&view=rev
Log:
Use final on buffer to make it available in the CompletionHandler

Modified:
    tomcat/tc8.5.x/trunk/test/org/apache/coyote/http11/upgrade/TestUpgradeInternalHandler.java

Modified: tomcat/tc8.5.x/trunk/test/org/apache/coyote/http11/upgrade/TestUpgradeInternalHandler.java
URL: http://svn.apache.org/viewvc/tomcat/tc8.5.x/trunk/test/org/apache/coyote/http11/upgrade/TestUpgradeInternalHandler.java?rev=1734815&r1=1734814&r2=1734815&view=diff
==============================================================================
--- tomcat/tc8.5.x/trunk/test/org/apache/coyote/http11/upgrade/TestUpgradeInternalHandler.java (original)
+++ tomcat/tc8.5.x/trunk/test/org/apache/coyote/http11/upgrade/TestUpgradeInternalHandler.java Sun Mar 13 14:48:21 2016
@@ -192,7 +192,7 @@ public class TestUpgradeInternalHandler
             // Arbitrarily located in the init, could be in the initial read event, asynchronous, etc.
             // Note: the completion check used will not call the completion handler if the IO completed inline and without error.
             // Using a completion check that always calls complete would be easier here since the action is the same even with inline completion.
-            ByteBuffer buffer = ByteBuffer.allocate(1024);
+            final ByteBuffer buffer = ByteBuffer.allocate(1024);
             CompletionState state = wrapper.read(false, 10, TimeUnit.SECONDS, null, SocketWrapperBase.READ_DATA, new CompletionHandler<Long, Void>() {
                 @Override
                 public void completed(Long result, Void attachment) {



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