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

Comparing jsr166/src/main/java/util/concurrent/TimeUnit.java (file contents):
Revision 1.50 by dl, Thu Mar 24 11:41:51 2016 UTC vs.
Revision 1.51 by jsr166, Fri Mar 25 03:14:56 2016 UTC

# Line 98 | Line 98 | public enum TimeUnit {
98      TimeUnit(long scale) {
99          this.scale = scale;
100          this.maxNanos = Long.MAX_VALUE / scale;
101 <        long r = (scale >= MILLI_SCALE ? scale / MILLI_SCALE :
102 <                  MILLI_SCALE / scale);
101 >        long r = (scale >= MILLI_SCALE)
102 >            ? scale / MILLI_SCALE
103 >            : MILLI_SCALE / scale;
104          this.millisRatio = r;
105          this.maxMillis = Long.MAX_VALUE / r;
106      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines