ggregory    2003/07/25 17:26:32

  Modified:    lang/src/java/org/apache/commons/lang RandomStringUtils.java
  Log:
  Severity      Description     Resource        In Folder       Location        
Creation Time
        Unnecessary cast to type int for expression of type char        
RandomStringUtils.java  Apache Jakarta Commons/lang/src/java/org/apache/commons/lang   
 line 259        July 23, 2003 11:22:36 AM
        Unnecessary cast to type int for expression of type char. It is already 
compatible with the argument type int   RandomStringUtils.java  Apache Jakarta 
Commons/lang/src/java/org/apache/commons/lang    line 258        July 23, 2003 
11:22:36 AM
  
  Revision  Changes    Path
  1.18      +3 -3      
jakarta-commons/lang/src/java/org/apache/commons/lang/RandomStringUtils.java
  
  Index: RandomStringUtils.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/RandomStringUtils.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- RandomStringUtils.java    19 Jul 2003 20:21:08 -0000      1.17
  +++ RandomStringUtils.java    26 Jul 2003 00:26:32 -0000      1.18
  @@ -255,8 +255,8 @@
               throw new IllegalArgumentException("Requested random string length " + 
count + " is less than 0.");
           }
           if( (start == 0) && (end == 0) ) {
  -            end = (int)'z' + 1;
  -            start = (int)' ';
  +            end = 'z' + 1;
  +            start = ' ';
               if(!letters && !numbers) {
                   start = 0;
                   end = Integer.MAX_VALUE;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to