On 24 April 2012 18:48, <ma...@apache.org> wrote: > Author: markt > Date: Tue Apr 24 17:48:50 2012 > New Revision: 1329891 > > URL: http://svn.apache.org/viewvc?rev=1329891&view=rev > Log: > Fix an Eclipse warning
I don't get that warning; but I do now get "Unnecessary @SuppressWarnings("unused")" Would the following work for you: @Test public void testJavaBeanInstantiation() { assertNotNull(new PoolUtils()); } It works for me. > Modified: > > commons/proper/pool/trunk/src/test/java/org/apache/commons/pool2/TestPoolUtils.java > > Modified: > commons/proper/pool/trunk/src/test/java/org/apache/commons/pool2/TestPoolUtils.java > URL: > http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/test/java/org/apache/commons/pool2/TestPoolUtils.java?rev=1329891&r1=1329890&r2=1329891&view=diff > ============================================================================== > --- > commons/proper/pool/trunk/src/test/java/org/apache/commons/pool2/TestPoolUtils.java > (original) > +++ > commons/proper/pool/trunk/src/test/java/org/apache/commons/pool2/TestPoolUtils.java > Tue Apr 24 17:48:50 2012 > @@ -56,6 +56,7 @@ public class TestPoolUtils { > /** Sleep time to let the minIdle tests run CHECK_COUNT times. */ > private static final int CHECK_SLEEP_PERIOD = CHECK_PERIOD * (CHECK_COUNT > - 1) + CHECK_PERIOD / 2; > > + @SuppressWarnings("unused") > @Test > public void testJavaBeanInstantiation() { > new PoolUtils(); > @@ -496,7 +497,7 @@ public class TestPoolUtils { > > Thread.sleep(10000); // 10 seconds > > - > + > o = pool.borrowObject(); > expectedMethods.add("borrowObject"); > pool.returnObject(o); > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org