From a7e1672f4315d86f3cb95f06ac35d88d778e8c3a Mon Sep 17 00:00:00 2001 From: Stephen Colebourne Date: Wed, 30 May 2018 14:35:48 +0100 Subject: [PATCH] Add/update since tags --- src/main/java/org/joda/time/Duration.java | 1 + src/main/java/org/joda/time/Instant.java | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/joda/time/Duration.java b/src/main/java/org/joda/time/Duration.java index 3a4a3a891..cff184180 100644 --- a/src/main/java/org/joda/time/Duration.java +++ b/src/main/java/org/joda/time/Duration.java @@ -543,6 +543,7 @@ public Duration negated() { * This instance is immutable and is not altered. * * @return the absolute duration instance + * @since 2.10 */ public Duration abs() { if (getMillis() < 0) { diff --git a/src/main/java/org/joda/time/Instant.java b/src/main/java/org/joda/time/Instant.java index 2b513c4ef..d50e4a280 100644 --- a/src/main/java/org/joda/time/Instant.java +++ b/src/main/java/org/joda/time/Instant.java @@ -59,6 +59,7 @@ public final class Instant /** * The Java epoch of 1970-01-01T00:00:00Z. + * @since 2.10 */ public static final Instant EPOCH = new Instant(0L); @@ -83,7 +84,7 @@ public static Instant now() { * Obtains an {@code Instant} set to the milliseconds from 1970-01-01T00:00:00Z. * * @param epochMilli the milliseconds from 1970-01-01T00:00:00Z - * @since 3.0 + * @since 2.10 */ public static Instant ofEpochMilli(long epochMilli) { return new Instant(epochMilli); @@ -94,7 +95,7 @@ public static Instant ofEpochMilli(long epochMilli) { * * @param epochSecond the seconds from 1970-01-01T00:00:00Z * @throws ArithmeticException if the new instant exceeds the capacity of a long - * @since 3.0 + * @since 2.10 */ public static Instant ofEpochSecond(long epochSecond) { return new Instant(FieldUtils.safeMultiply(epochSecond, 1000));