You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by jd...@apache.org on 2003/08/12 17:37:14 UTC
cvs commit: incubator-geronimo/modules/common/src/java/org/apache/geronimo/common Strings.java
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);
}