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 git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137500 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
98732b58ca
commit
e81e45f27f
|
@ -64,7 +64,7 @@ import java.util.Random;
|
|||
* @author <a href="mailto:ggregory@seagullsw.com">Gary Gregory</a>
|
||||
* @author Phil Steitz
|
||||
* @since 1.0
|
||||
* @version $Id: RandomStringUtils.java,v 1.17 2003/07/19 20:21:08 scolebourne Exp $
|
||||
* @version $Id: RandomStringUtils.java,v 1.18 2003/07/26 00:26:32 ggregory Exp $
|
||||
*/
|
||||
public class RandomStringUtils {
|
||||
|
||||
|
@ -255,8 +255,8 @@ public class RandomStringUtils {
|
|||
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;
|
||||
|
|
Loading…
Reference in New Issue