Skip to content

Commit ce58a64

Browse files
committed
* Typos
* Undid IntelliJ changes to imports in TestTemporals
1 parent 3900565 commit ce58a64

2 files changed

Lines changed: 25 additions & 6 deletions

File tree

src/main/java/org/threeten/extra/Temporals.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public static TemporalAdjuster previousWorkingDayOrSame() {
146146
* half of an hour.
147147
* This method always truncates the result to minutes.
148148
*
149-
* @return time rounded to the nearest quarter of an hour, not null
149+
* @return time rounded to the nearest half of an hour, not null
150150
*/
151151
public static TemporalAdjuster nearestHalf() {
152152
return Adjuster.NEAREST_HALF;
@@ -170,7 +170,7 @@ public static TemporalAdjuster nearestQuarter() {
170170
* Time that falls between the two minutes before and three minutes after the tenth part is rounded towards the tenth part.
171171
* This method always truncates the result to minutes.
172172
*
173-
* @return time rounded to the nearest quarter of an hour, not null
173+
* @return time rounded to the nearest tenth of an hour, not null
174174
*/
175175
public static TemporalAdjuster nearestTenth() {
176176
return Adjuster.NEAREST_TENTH;
@@ -179,10 +179,10 @@ public static TemporalAdjuster nearestTenth() {
179179
/**
180180
* Returns an adjuster that rounds time to the nearest twelfth of an hour (5 minutes intervals).
181181
* <p>
182-
* Time that falls between the two minutes before and after the tenth part is rounded towards the tenth part.
182+
* Time that falls between the two minutes before and after the twelfth part is rounded towards the twelfth part.
183183
* This method always truncates the result to minutes.
184184
*
185-
* @return time rounded to the nearest quarter of an hour, not null
185+
* @return time rounded to the nearest twelfth of an hour, not null
186186
*/
187187
public static TemporalAdjuster nearestTwelfth() {
188188
return Adjuster.NEAREST_TWELFTH;

src/test/java/org/threeten/extra/TestTemporals.java

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,20 @@
3737
import static java.time.DayOfWeek.SUNDAY;
3838
import static java.time.Month.DECEMBER;
3939
import static java.time.Month.JANUARY;
40-
import static java.time.temporal.ChronoUnit.*;
40+
import static java.time.temporal.ChronoUnit.CENTURIES;
41+
import static java.time.temporal.ChronoUnit.DAYS;
42+
import static java.time.temporal.ChronoUnit.DECADES;
43+
import static java.time.temporal.ChronoUnit.ERAS;
44+
import static java.time.temporal.ChronoUnit.FOREVER;
45+
import static java.time.temporal.ChronoUnit.HALF_DAYS;
46+
import static java.time.temporal.ChronoUnit.HOURS;
47+
import static java.time.temporal.ChronoUnit.MILLENNIA;
48+
import static java.time.temporal.ChronoUnit.MINUTES;
49+
import static java.time.temporal.ChronoUnit.MONTHS;
50+
import static java.time.temporal.ChronoUnit.NANOS;
51+
import static java.time.temporal.ChronoUnit.SECONDS;
52+
import static java.time.temporal.ChronoUnit.WEEKS;
53+
import static java.time.temporal.ChronoUnit.YEARS;
4154
import static java.time.temporal.IsoFields.QUARTER_YEARS;
4255
import static org.junit.jupiter.api.Assertions.assertEquals;
4356
import static org.junit.jupiter.api.Assertions.assertFalse;
@@ -51,7 +64,13 @@
5164
import java.io.ObjectInputStream;
5265
import java.io.ObjectOutputStream;
5366
import java.io.Serializable;
54-
import java.time.*;
67+
import java.time.DateTimeException;
68+
import java.time.LocalDate;
69+
import java.time.LocalTime;
70+
import java.time.LocalDateTime;
71+
import java.time.ZonedDateTime;
72+
import java.time.OffsetDateTime;
73+
import java.time.Month;
5574
import java.time.format.DateTimeFormatter;
5675
import java.time.format.DateTimeParseException;
5776
import java.time.temporal.ChronoUnit;

0 commit comments

Comments
 (0)