[jboss-cvs] jboss-seam/src/main/org/jboss/seam/util ...

Norman Richards norman.richards at jboss.com
Wed Nov 28 14:14:03 EST 2007


  User: nrichards
  Date: 07/11/28 14:14:03

  Modified:    src/main/org/jboss/seam/util  Id.java
  Log:
  JBSEAM-2105
  
  Revision  Changes    Path
  1.3       +6 -9      jboss-seam/src/main/org/jboss/seam/util/Id.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Id.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/util/Id.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- Id.java	10 Oct 2006 21:00:53 -0000	1.2
  +++ Id.java	28 Nov 2007 19:14:03 -0000	1.3
  @@ -1,15 +1,12 @@
  -//$Id: Id.java,v 1.2 2006/10/10 21:00:53 gavin Exp $
  +//$Id: Id.java,v 1.3 2007/11/28 19:14:03 nrichards Exp $
   package org.jboss.seam.util;
   
  -import java.util.concurrent.atomic.AtomicInteger;
  +import org.jboss.seam.core.ConversationIdGenerator;
   
   public class Id
   {
  -   private static AtomicInteger uniqueId = new AtomicInteger(0);
  -   
  -   public static String nextId() 
  -   {
  -      //TODO: this is not cluster safe!!!!!
  -      return Integer.toString( uniqueId.incrementAndGet() );
  +    @Deprecated
  +    public static String nextId() {
  +        return ConversationIdGenerator.instance().getNextId();
      }
   }
  
  
  



More information about the jboss-cvs-commits mailing list