Skip to content

Commit 4bdb4ab

Browse files
committed
Fix ocpsoft#39: Javadoc should reflect actual behavior
1 parent 43b28df commit 4bdb4ab

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎core/src/main/java/org/ocpsoft/prettytime/PrettyTime.java‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,7 @@ public List<Duration> calculatePreciseDuration(final Date then)
233233

234234
/**
235235
* Format the given {@link Date} object. This method applies the {@code PrettyTime.approximateDuration(date)} method
236-
* to perform its calculation. If {@code then} is null, it will default to {@code new Date()}; also decorate for
237-
* past/future tense.
236+
* to perform its calculation; also decorate for past/future tense.
238237
*
239238
* @param duration the {@link Date} to be formatted
240239
* @return A formatted string representing {@code then}

0 commit comments

Comments
 (0)