diff --git "a/\\" "b/\\" deleted file mode 100644 index c103e8d..0000000 --- "a/\\" +++ /dev/null @@ -1,31 +0,0 @@ -package com.asahaf.javacron; - -import org.junit.Assert; -import org.junit.Test; - -public class ScheduleCompareToTest { - - @Test - public void testCompareTo() throws InvalidExpressionException { - Schedule schedule1 = Schedule.create("* * * * *"); - Schedule schedule2 = Schedule.create("* * * * *"); - Assert.assertEquals(0, schedule1.compareTo(schedule2)); - - schedule1 = Schedule.create("* * * * * *"); - schedule2 = Schedule.create("* * * * * *"); - Assert.assertEquals(0, schedule1.compareTo(schedule2)); - - schedule1 = Schedule.create("* * * * * *"); - schedule2 = Schedule.create("* * * * *"); - Assert.assertEquals(-1, schedule1.compareTo(schedule2)); - - schedule1 = Schedule.create("* * * * *"); - schedule2 = Schedule.create("* * * * * *"); - Assert.assertEquals(1, schedule1.compareTo(schedule2)); - - schedule1 = Schedule.create("0 0 4 * * *"); - schedule2 = Schedule.create("0 0 4 * * *"); - Assert.assertEquals(0, schedule1.compareTo(schedule2)); - } - -} diff --git a/src/main/java/com/asahaf/javacron/Schedule.java b/src/main/java/com/asahaf/javacron/Schedule.java index 19b2be1..1c1a737 100644 --- a/src/main/java/com/asahaf/javacron/Schedule.java +++ b/src/main/java/com/asahaf/javacron/Schedule.java @@ -306,7 +306,7 @@ public long nextDuration(Date baseDate, TimeUnit timeUnit) { * * The next occurrences are calculated based on the current time. * - * @para anotherSchedule the {@code Schedule} to be compared. + * @param anotherSchedule the {@code Schedule} to be compared. * @return the value {@code 0} if this {@code Schedule} next occurrence is equal * to the argument {@code Schedule} next occurrence; a value less than * {@code 0} if this {@code Schedule} next occurrence is before the