Skip to content

Commit 9708d2c

Browse files
committed
Fix javadoc typos.
1 parent efb45d3 commit 9708d2c

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/main/java/com/cronutils/mapper/CronMapper.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ public class CronMapper {
4949
* if null a NullPointerException will be raised
5050
* @param to - target CronDefinition;
5151
* if null a NullPointerException will be raised
52+
* @param cronRules - cron rules
5253
*/
5354
public CronMapper(CronDefinition from, CronDefinition to, Function<Cron, Cron> cronRules){
5455
Preconditions.checkNotNull(from, "Source CronDefinition must not be null");

src/main/java/com/cronutils/model/time/ExecutionTime.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public static ExecutionTime forCron(Cron cron) {
136136
/**
137137
* Provide nearest date for next execution.
138138
* @param date - ZonedDateTime instance. If null, a NullPointerException will be raised.
139-
* @return Optional<ZonedDateTime> instance, never null. Contains next execution time or empty.
139+
* @return Optional ZonedDateTime instance, never null. Contains next execution time or empty.
140140
*/
141141
public Optional<ZonedDateTime> nextExecution(ZonedDateTime date) {
142142
Preconditions.checkNotNull(date);
@@ -443,7 +443,7 @@ public Optional<Duration> timeToNextExecution(ZonedDateTime date){
443443
/**
444444
* Provide nearest date for last execution.
445445
* @param date - ZonedDateTime instance. If null, a NullPointerException will be raised.
446-
* @return Optional<ZonedDateTime> instance, never null. Last execution time or empty.
446+
* @return Optional ZonedDateTime instance, never null. Last execution time or empty.
447447
*/
448448
public Optional<ZonedDateTime> lastExecution(ZonedDateTime date){
449449
Preconditions.checkNotNull(date);

src/main/java/com/cronutils/utils/Preconditions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public static void checkState(boolean expression,
158158
* Ensures that an object reference passed as a parameter to the calling method is not null.
159159
*
160160
* @param reference an object reference
161-
* @return the non-null reference that was validated
161+
* @return T - the non-null reference that was validated
162162
* @throws NullPointerException if {@code reference} is null
163163
*/
164164
public static <T> T checkNotNull(T reference) {

0 commit comments

Comments
 (0)