Author: markt Date: Sun Aug 26 18:34:31 2018 New Revision: 1839236 URL: http://svn.apache.org/viewvc?rev=1839236&view=rev Log: Keep SpotBugs happy
Modified: tomcat/trunk/test/org/apache/coyote/http2/TestAsync.java Modified: tomcat/trunk/test/org/apache/coyote/http2/TestAsync.java URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/coyote/http2/TestAsync.java?rev=1839236&r1=1839235&r2=1839236&view=diff ============================================================================== --- tomcat/trunk/test/org/apache/coyote/http2/TestAsync.java (original) +++ tomcat/trunk/test/org/apache/coyote/http2/TestAsync.java Sun Aug 26 18:34:31 2018 @@ -193,7 +193,7 @@ public class TestAsync extends Http2Test } // Check that the right number of bytes were received - Assert.assertEquals(blockCount * BLOCK_SIZE, output.getBytesRead()); + Assert.assertEquals((long) blockCount * BLOCK_SIZE, output.getBytesRead()); } @@ -203,8 +203,8 @@ public class TestAsync extends Http2Test private final int blockLimit; private final boolean useNonContainerThreadForWrite; - private final ScheduledExecutorService scheduler = Executors.newScheduledThreadPool(1); - private volatile Future<?> future; + private final transient ScheduledExecutorService scheduler = Executors.newScheduledThreadPool(1); + private transient volatile Future<?> future; public AsyncServlet(int blockLimit, boolean useNonContainerThreadForWrite) { this.blockLimit = blockLimit; --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org