You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by dl...@apache.org on 2002/02/22 18:09:54 UTC

cvs commit: jakarta-commons-sandbox/util/src/java/org/apache/commons/util GenerateUniqueId.java

dlr         02/02/22 09:09:54

  Modified:    util/src/java/org/apache/commons/util GenerateUniqueId.java
  Log:
  Removed use of StringUtils, which has been moved to the new Commons
  Lang package.
  
  Revision  Changes    Path
  1.5       +2 -2      jakarta-commons-sandbox/util/src/java/org/apache/commons/util/GenerateUniqueId.java
  
  Index: GenerateUniqueId.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/util/src/java/org/apache/commons/util/GenerateUniqueId.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -u -r1.4 -r1.5
  --- GenerateUniqueId.java	19 Oct 2001 20:22:41 -0000	1.4
  +++ GenerateUniqueId.java	22 Feb 2002 17:09:54 -0000	1.5
  @@ -67,7 +67,7 @@
    *
    * @author <a href="mailto:jon@clearink.com">Jon S. Stevens</a>
    * @author <a href="mailto:neeme@one.lv">Neeme Praks</a>
  - * @version $Id: GenerateUniqueId.java,v 1.4 2001/10/19 20:22:41 dlr Exp $
  + * @version $Id: GenerateUniqueId.java,v 1.5 2002/02/22 17:09:54 dlr Exp $
    */
   public class GenerateUniqueId
   {
  @@ -160,7 +160,7 @@
        */
       public synchronized String getIdentifier(String suffix)
       {
  -        if (StringUtils.isValid(suffix))
  +        if (suffix != null && suffix.length() > 0)
           {
               return getIdentifier() + '.' + suffix;
           }
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>