commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scolebou...@apache.org
Subject cvs commit: jakarta-commons/lang/src/java/org/apache/commons/lang/enum Enum.java
Date Tue, 04 Feb 2003 16:56:11 GMT
scolebourne    2003/02/04 08:56:09

  Modified:    lang/src/java/org/apache/commons/lang/enum Enum.java
  Log:
  Update to output more nicely formatted toString() that converts $ to .
  
  Revision  Changes    Path
  1.7       +2 -1      jakarta-commons/lang/src/java/org/apache/commons/lang/enum/Enum.java
  
  Index: Enum.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/enum/Enum.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- Enum.java	31 Dec 2002 22:39:39 -0000	1.6
  +++ Enum.java	4 Feb 2003 16:56:08 -0000	1.7
  @@ -421,6 +421,7 @@
           if (pos != -1) {
               shortName = shortName.substring(pos + 1);
           }
  +        shortName = shortName.replace('$', '.');
           return shortName + "[" + getName() + "]";
       }
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message