ThreeTen / threeten

This project was the home of code used to develop a modern date and time library for JDK8. Development has moved to OpenJDK and a separate backport project, threetenbp.
http://threeten.github.io/
191 stars 37 forks source link

Rename periodUntil() to until() #311

Closed jodastephen closed 11 years ago

jodastephen commented 11 years ago

The Temporal.periodUntil and ChronoLocalDate.periodUntil methods use the name "period", but we only use that for date-based now via the Period class. The general term is "amount", but renaming to amountUntil() wouldn't be entirely clear. Renaming to until() is simple and effective, and keeps the methods grouped in the IDE.

RogerRiggs commented 11 years ago

Agreed that 'period' is unnecessarily specific in these methods.

RogerRiggs commented 11 years ago

JBS/bugs.sun.com 8016002

RogerRiggs commented 11 years ago

Resolved by http://hg.openjdk.java.net/threeten/threeten/jdk/rev/b80297d05eb9