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.66 by jsr166, Sun Jun 10 01:18:10 2018 UTC vs.
Revision 1.67 by jsr166, Fri Jun 22 17:45:03 2018 UTC

# Line 173 | Line 173 | public enum TimeUnit {
173       * {@code unit.convert(Duration.of(n, unit.toChronoUnit()))}
174       * is equivalent to {@code n} (in the absence of overflow).
175       *
176 <     * <p>This method differs from {@link Duration#toNanos()} in that
177 <     * it does not throw {@link ArithmeticException} on numeric overflow.
176 >     * @apiNote
177 >     * This method differs from {@link Duration#toNanos()} in that it
178 >     * does not throw {@link ArithmeticException} on numeric overflow.
179       *
180       * @param duration the time duration
181       * @return the converted duration in this unit,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines