ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/Random.java
(Generate patch)

Comparing jsr166/src/main/java/util/Random.java (file contents):
Revision 1.22 by jsr166, Sun May 18 23:59:57 2008 UTC vs.
Revision 1.23 by jsr166, Mon May 19 00:27:06 2008 UTC

# Line 504 | Line 504 | class Random implements java.io.Serializ
504  
505          // The seed is read in as {@code long} for
506          // historical reasons, but it is converted to an AtomicLong.
507 <        long seedVal = (long) fields.get("seed", -1L);
507 >        long seedVal = fields.get("seed", -1L);
508          if (seedVal < 0)
509            throw new java.io.StreamCorruptedException(
510                                "Random: invalid seed");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines