geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject cvs commit: incubator-geronimo/modules/common/src/java/org/apache/geronimo/common Strings.java
Date Tue, 12 Aug 2003 15:37:14 GMT
jdillon     2003/08/12 08:37:14

  Modified:    modules/common/src/java/org/apache/geronimo/common
                        Strings.java
  Log:
   o Use IAE instead of custom exception
  
  Revision  Changes    Path
  1.2       +2 -2      incubator-geronimo/modules/common/src/java/org/apache/geronimo/common/Strings.java
  
  Index: Strings.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/common/src/java/org/apache/geronimo/common/Strings.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Strings.java	12 Aug 2003 15:33:05 -0000	1.1
  +++ Strings.java	12 Aug 2003 15:37:14 -0000	1.2
  @@ -649,7 +649,7 @@
           if (string == null)
               throw new NullArgumentException("string");
           if (string.equals(""))
  -            throw new EmptyStringException("string");
  +            throw new IllegalArgumentException("string is empty");
           
           return Character.toUpperCase(string.charAt(0)) + string.substring(1);
       }
  
  
  

Mime
View raw message