diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | java/io/File.java | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2004-11-09 Tom Tromey <tromey@redhat.com> + + * java/io/File.java (directory.getName): Removed redundant cast. + Changed "mask" to be of type "long". + 2004-11-08 Casey Marshall <csm@gnu.org> * java/util/jar/JarFile.java (verify): return if the jar is signed diff --git a/java/io/File.java b/java/io/File.java index 5c01e8d16..f6fcce772 100644 --- a/java/io/File.java +++ b/java/io/File.java @@ -1118,7 +1118,7 @@ public class File implements Serializable, Comparable if (prefix.length() >= 8) throw new IllegalArgumentException("Prefix too long: " + prefix + "(valid length 3..7)"); - int mask = (int) (0x000000ffffFFFFL >> (long) (prefix.length() * 4)); + long mask = 0x000000ffffFFFFL >> (prefix.length() * 4); do { int n = (int) (System.currentTimeMillis() & mask); |