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

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


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

  Modified:    tests/functional/org/jboss/cache/loader/deadlock 
                        ConcurrentCreationDeadlockTest.java
  Log:
  Reduce Java5 related ide generated warnings
  
  Revision  Changes    Path
  1.17      +5 -5      JBossCache/tests/functional/org/jboss/cache/loader/deadlock/ConcurrentCreationDeadlockTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ConcurrentCreationDeadlockTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/loader/deadlock/ConcurrentCreationDeadlockTest.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -b -r1.16 -r1.17
  --- ConcurrentCreationDeadlockTest.java	16 Apr 2007 17:37:13 -0000	1.16
  +++ ConcurrentCreationDeadlockTest.java	11 Jun 2007 12:58:16 -0000	1.17
  @@ -360,9 +360,9 @@
            // fire the workers to start processing
            latch.countDown();
            // wait for all workers to complete
  -         for (int j = 0; j < t.length; j++)
  +         for (Worker worker : t)
            {
  -            t[j].join();
  +            worker.join();
            }
         }
      }
  @@ -394,8 +394,8 @@
       * A worker thread that applies the concurrent modifications.
       *
       * @author Marian Nikolov
  -    * @author $Author: vblagojevic $
  -    * @version $Date: 2007/04/16 17:37:13 $
  +    * @author $Author: msurtani $
  +    * @version $Date: 2007/06/11 12:58:16 $
       */
      private class Worker extends Thread
      {
  @@ -475,7 +475,7 @@
                  Fqn fqn = new Fqn(new Fqn("NODE"), i);
                  for (int m = 0; m < m_modificationsPerTx; m++)
                  {
  -                  cache.put(fqn, new Integer(m), new Integer(i));
  +                  cache.put(fqn, m, i);
                     if (checkAndSetState())
                     {
                        try
  
  
  



More information about the jboss-cvs-commits mailing list