commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject cvs commit: jakarta-commons/lang/src/java/org/apache/commons/lang CharUtils.java
Date Mon, 24 May 2004 00:10:16 GMT
ggregory    2004/05/23 17:10:15

  Modified:    lang/src/java/org/apache/commons/lang CharUtils.java
  Log:
  Bullet proofing.
  
  Revision  Changes    Path
  1.9       +2 -2      jakarta-commons/lang/src/java/org/apache/commons/lang/CharUtils.java
  
  Index: CharUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/CharUtils.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- CharUtils.java	10 Mar 2004 23:23:46 -0000	1.8
  +++ CharUtils.java	24 May 2004 00:10:15 -0000	1.9
  @@ -82,7 +82,7 @@
        * @return a Character of the specified character
        */
       public static Character toCharacterObject(char ch) {
  -        if (ch < 128) {
  +        if (ch < CHAR_ARRAY.length) {
               return CHAR_ARRAY[ch];
           } else {
               return new Character(ch);
  
  
  

---------------------------------------------------------------------
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