[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/passivation ...

Manik Surtani manik at jboss.org
Mon Jun 11 08:58:17 EDT 2007


  User: msurtani
  Date: 07/06/11 08:58:17

  Modified:    tests/functional/org/jboss/cache/passivation  
                        ConcurrentPassivationTest.java
                        PassivationTestsBase.java
  Log:
  Reduce Java5 related ide generated warnings
  
  Revision  Changes    Path
  1.14      +2 -2      JBossCache/tests/functional/org/jboss/cache/passivation/ConcurrentPassivationTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ConcurrentPassivationTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/passivation/ConcurrentPassivationTest.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -b -r1.13 -r1.14
  --- ConcurrentPassivationTest.java	29 May 2007 13:51:27 -0000	1.13
  +++ ConcurrentPassivationTest.java	11 Jun 2007 12:58:17 -0000	1.14
  @@ -21,7 +21,7 @@
    * Tests cache behavior in the presence of concurrent passivation.
    *
    * @author Brian Stansberry
  - * @version $Revision: 1.13 $
  + * @version $Revision: 1.14 $
    */
   public class ConcurrentPassivationTest extends TestCase
   {
  @@ -73,7 +73,7 @@
         // region's maxNodes so we know eviction will kick in
         for (int i = 0; i < 35000; i++)
         {
  -         cache_.put(new Fqn(base, i / 100), new Integer(i), "value");
  +         cache_.put(new Fqn(base, i / 100), i, "value");
         }
   
         // Loop for long enough to have 5 runs of the eviction thread
  
  
  
  1.30      +2 -2      JBossCache/tests/functional/org/jboss/cache/passivation/PassivationTestsBase.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: PassivationTestsBase.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/passivation/PassivationTestsBase.java,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -b -r1.29 -r1.30
  --- PassivationTestsBase.java	7 Feb 2007 22:06:43 -0000	1.29
  +++ PassivationTestsBase.java	11 Jun 2007 12:58:17 -0000	1.30
  @@ -39,7 +39,7 @@
    * Base tests for passivation using any of the cache loaders
    *
    * @author <a href="mailto:{hmesha at novell.com}">{Hany Mesha}</a>
  - * @version $Id: PassivationTestsBase.java,v 1.29 2007/02/07 22:06:43 genman Exp $
  + * @version $Id: PassivationTestsBase.java,v 1.30 2007/06/11 12:58:17 msurtani Exp $
    */
   abstract public class PassivationTestsBase extends TestCase
   {
  @@ -119,7 +119,7 @@
         final Fqn NODE = Fqn.fromString("/test");
         final String KEY = "key";
         loader.remove(NODE);
  -      cache.put(NODE, KEY, new Integer(10));
  +      cache.put(NODE, KEY, 10);
         cache.evict(NODE);
         assertTrue(loader.exists(NODE));
         addDelay();
  
  
  



More information about the jboss-cvs-commits mailing list