Skip to content
This repository has been archived by the owner on Mar 20, 2018. It is now read-only.

Commit

Permalink
Replace tabs by spaces
Browse files Browse the repository at this point in the history
Matches OpenJdk conventions
  • Loading branch information
jodastephen committed Nov 9, 2012
1 parent 84fff82 commit d929923
Show file tree
Hide file tree
Showing 202 changed files with 1,414 additions and 1,414 deletions.
Expand Up @@ -44,7 +44,7 @@
* The number of years may be queried using getYears().
* Basic mathematical operations are provided - plus(), minus(), multipliedBy(),
* dividedBy() and negated(), all of which return a new instance
*
*
* <h4>Implementation notes</h4>
* This is an abstract class and must be implemented with care to ensure
* other classes in the framework operate correctly.
Expand Down
6 changes: 3 additions & 3 deletions src-extra/main/java/javax/time/extra/AmPm.java
Expand Up @@ -64,7 +64,7 @@
* This enum represents a common concept that is found in many calendar systems.
* As such, this enum may be used by any calendar system that has the AM/PM
* concept defined exactly equivalent to the ISO calendar system.
*
*
* <h4>Implementation notes</h4>
* This is an immutable and thread-safe enum.
*/
Expand Down Expand Up @@ -122,7 +122,7 @@ public static AmPm ofHour(int hourOfDay) {
* <p>
* A {@code DateTimeAccessor} represents some form of date and time information.
* This factory converts the arbitrary date-time object to an instance of {@code AmPm}.
*
*
* @param dateTime the date-time object to convert, not null
* @return the AM/PM, not null
* @throws DateTimeException if unable to convert to a {@code AmPm}
Expand Down Expand Up @@ -217,7 +217,7 @@ public AmPm with(DateTimeField field, long newValue) {
* <p>
* This method exists to fulfill the {@link DateTimeAccessor} interface.
* This implementation always returns null.
*
*
* @param <R> the type to extract
* @param type the type to extract, null returns null
* @return the extracted object, null if unable to extract
Expand Down
10 changes: 5 additions & 5 deletions src-extra/main/java/javax/time/extra/ChronoAdjusters.java
Expand Up @@ -78,31 +78,31 @@ public DateTime doWithAdjustment(DateTime dateTime) {
public static void main(String[] args) {
LocalDate date = LocalDate.now();
System.out.println(date);

// date = date.with(hijrah(dt -> dt.plus(1, MONTHS)));
// date = date.with(minguo(dt -> dt.plus(1, MONTHS)));
// date = date.with(minguo(firstDayOfNextMonth()));
// date = date.with(hijrah(firstDayOfNextMonth()));

date = date.with(hijrah(new WithAdjuster() {
@Override
public DateTime doWithAdjustment(DateTime dateTime) {
return dateTime.plus(1, MONTHS);
}
}));
System.out.println(date);

date = date.with(minguo(new WithAdjuster() {
@Override
public DateTime doWithAdjustment(DateTime dateTime) {
return dateTime.plus(1, MONTHS);
}
}));
System.out.println(date);

date = date.with(minguo(DateTimeAdjusters.firstDayOfNextMonth()));
System.out.println(date);

date = date.with(hijrah(DateTimeAdjusters.firstDayOfNextMonth()));
System.out.println(date);
}
Expand Down
4 changes: 2 additions & 2 deletions src-extra/main/java/javax/time/extra/DayOfMonth.java
Expand Up @@ -52,7 +52,7 @@
* <p>
* Static factory methods allow you to construct instances.
* The day-of-month may be queried using getValue().
*
*
* <h4>Implementation notes</h4>
* This class is immutable and thread-safe.
*/
Expand Down Expand Up @@ -105,7 +105,7 @@ public static DayOfMonth of(int dayOfMonth) {
* A {@code DateTimeAccessor} represents some form of date and time information.
* A {@code DateTimeAccessor} represents some form of date and time information.
* This factory converts the arbitrary date-time object to an instance of {@code DayOfMonth}.
*
*
* @param dateTime the date-time object to convert, not null
* @return the day-of-month, not null
* @throws DateTimeException if unable to convert to a {@code DayOfMonth}
Expand Down
4 changes: 2 additions & 2 deletions src-extra/main/java/javax/time/extra/DayOfYear.java
Expand Up @@ -55,7 +55,7 @@
* <p>
* Static factory methods allow you to construct instances.
* The day-of-year may be queried using getValue().
*
*
* <h4>Implementation notes</h4>
* This class is immutable and thread-safe.
*/
Expand Down Expand Up @@ -104,7 +104,7 @@ public static DayOfYear of(int dayOfYear) {
* <p>
* A {@code DateTimeAccessor} represents some form of date and time information.
* This factory converts the arbitrary date-time object to an instance of {@code DayOfYear}.
*
*
* @param dateTime the date-time object to convert, not null
* @return the day-of-year, not null
* @throws DateTimeException if unable to convert to a {@code DayOfYear}
Expand Down
2 changes: 1 addition & 1 deletion src-extra/main/java/javax/time/extra/Days.java
Expand Up @@ -47,7 +47,7 @@
* The number of days may be queried using getDays().
* Basic mathematical operations are provided - plus(), minus(), multipliedBy(),
* dividedBy() and negated(), all of which return a new instance
*
*
* <h4>Implementation notes</h4>
* This class is immutable and thread-safe.
*/
Expand Down
4 changes: 2 additions & 2 deletions src-extra/main/java/javax/time/extra/HourOfDay.java
Expand Up @@ -52,7 +52,7 @@
* <p>
* Static factory methods allow you to construct instances.
* The hour-of-day may be queried using getValue().
*
*
* <h4>Implementation notes</h4>
* This class is immutable and thread-safe.
*/
Expand Down Expand Up @@ -115,7 +115,7 @@ public static HourOfDay of(AmPm amPm, int hourOfAmPm) {
* <p>
* A {@code DateTimeAccessor} represents some form of date and time information.
* This factory converts the arbitrary date-time object to an instance of {@code HourOfDay}.
*
*
* @param dateTime the date-time object to convert, not null
* @return the hour-of-day, not null
* @throws DateTimeException if unable to convert to a {@code HourOfDay}
Expand Down
2 changes: 1 addition & 1 deletion src-extra/main/java/javax/time/extra/Hours.java
Expand Up @@ -47,7 +47,7 @@
* The number of hours may be queried using getHours().
* Basic mathematical operations are provided - plus(), minus(), multipliedBy(),
* dividedBy() and negated(), all of which return a new instance
*
*
* <h4>Implementation notes</h4>
* This class is immutable and thread-safe.
*/
Expand Down
4 changes: 2 additions & 2 deletions src-extra/main/java/javax/time/extra/MinuteOfHour.java
Expand Up @@ -52,7 +52,7 @@
* <p>
* Static factory methods allow you to construct instances.
* The minute-of-hour may be queried using getValue().
*
*
* <h4>Implementation notes</h4>
* This class is immutable and thread-safe.
*/
Expand Down Expand Up @@ -101,7 +101,7 @@ public static MinuteOfHour of(int minuteOfHour) {
* <p>
* A {@code DateTimeAccessor} represents some form of date and time information.
* This factory converts the arbitrary date-time object to an instance of {@code MinuteOfHour}.
*
*
* @param dateTime the date-time object to convert, not null
* @return the minute-of-hour, not null
* @throws DateTimeException if unable to convert to a {@code MinuteOfHour}
Expand Down
2 changes: 1 addition & 1 deletion src-extra/main/java/javax/time/extra/Minutes.java
Expand Up @@ -47,7 +47,7 @@
* The number of minutes may be queried using getMinutes().
* Basic mathematical operations are provided - plus(), minus(), multipliedBy(),
* dividedBy() and negated(), all of which return a new instance
*
*
* <h4>Implementation notes</h4>
* This class is immutable and thread-safe.
*/
Expand Down
2 changes: 1 addition & 1 deletion src-extra/main/java/javax/time/extra/Months.java
Expand Up @@ -47,7 +47,7 @@
* The number of months may be queried using getMonths().
* Basic mathematical operations are provided - plus(), minus(), multipliedBy(),
* dividedBy() and negated(), all of which return a new instance
*
*
* <h4>Implementation notes</h4>
* This class is immutable and thread-safe.
*/
Expand Down
4 changes: 2 additions & 2 deletions src-extra/main/java/javax/time/extra/NanoOfSecond.java
Expand Up @@ -51,7 +51,7 @@
* <p>
* Static factory methods allow you to construct instances.
* The nano-of-second may be queried using getValue().
*
*
* <h4>Implementation notes</h4>
* This class is immutable and thread-safe.
*/
Expand Down Expand Up @@ -95,7 +95,7 @@ public static NanoOfSecond of(int nanoOfSecond) {
* <p>
* A {@code DateTimeAccessor} represents some form of date and time information.
* This factory converts the arbitrary date-time object to an instance of {@code NanoOfSecond}.
*
*
* @param dateTime the date-time object to convert, not null
* @return the nano-of-second, not null
* @throws DateTimeException if unable to convert to a {@code NanoOfSecond}
Expand Down
8 changes: 4 additions & 4 deletions src-extra/main/java/javax/time/extra/QuarterOfYear.java
Expand Up @@ -66,7 +66,7 @@
* This enum represents a common concept that is found in many calendar systems.
* As such, this enum may be used by any calendar system that has the quarter-of-year
* concept defined exactly equivalent to the ISO calendar system.
*
*
* <h4>Implementation notes</h4>
* This is an immutable and thread-safe enum.
*/
Expand Down Expand Up @@ -138,7 +138,7 @@ public static QuarterOfYear ofMonth(Month month) {
* <p>
* A {@code DateTimeAccessor} represents some form of date and time information.
* This factory converts the arbitrary date-time object to an instance of {@code QuarterOfYear}.
*
*
* @param dateTime the date-time object to convert, not null
* @return the quarter-of-year, not null
* @throws DateTimeException if unable to convert to a {@code QuarterOfYear}
Expand Down Expand Up @@ -292,7 +292,7 @@ public Month firstMonth() {
* <p>
* This method exists to fulfill the {@link DateTimeAccessor} interface.
* This implementation always returns null.
*
*
* @param <R> the type to extract
* @param type the type to extract, null returns null
* @return the extracted object, null if unable to extract
Expand All @@ -310,7 +310,7 @@ public <R> R extract(Class<R> type) {
* date-time object to make the adjustment passing this as the argument.
* <p>
* This instance is immutable and unaffected by this method call.
*
*
* <h4>Implementation notes</h4>
* Adjusts the specified date-time to have the value of this quarter.
* The date-time object must use the ISO calendar system.
Expand Down
2 changes: 1 addition & 1 deletion src-extra/main/java/javax/time/extra/QuarterYearField.java
Expand Up @@ -52,7 +52,7 @@

/**
* A set of date fields that provide access to the quarter-of-year.
*
*
* <h4>Implementation notes</h4>
* This is an immutable and thread-safe enum.
*/
Expand Down
2 changes: 1 addition & 1 deletion src-extra/main/java/javax/time/extra/ResolutionMode.java
Expand Up @@ -33,7 +33,7 @@

/**
* How to resolve invalid combinations of date or time fields.
*
*
* <h4>Implementation notes</h4>
* This is an immutable and thread-safe enum.
*/
Expand Down
4 changes: 2 additions & 2 deletions src-extra/main/java/javax/time/extra/SecondOfMinute.java
Expand Up @@ -52,7 +52,7 @@
* <p>
* Static factory methods allow you to construct instances.
* The second-of-minute may be queried using getValue().
*
*
* <h4>Implementation notes</h4>
* This class is immutable and thread-safe.
*/
Expand Down Expand Up @@ -101,7 +101,7 @@ public static SecondOfMinute of(int secondOfMinute) {
* <p>
* A {@code DateTimeAccessor} represents some form of date and time information.
* This factory converts the arbitrary date-time object to an instance of {@code SecondOfMinute}.
*
*
* @param dateTime the date-time object to convert, not null
* @return the year, not null
* @throws DateTimeException if unable to convert to a {@code SecondOfMinute}
Expand Down
2 changes: 1 addition & 1 deletion src-extra/main/java/javax/time/extra/Seconds.java
Expand Up @@ -47,7 +47,7 @@
* The number of seconds may be queried using getSeconds().
* Basic mathematical operations are provided - plus(), minus(), multipliedBy(),
* dividedBy() and negated(), all of which return a new instance
*
*
* <h4>Implementation notes</h4>
* This class is immutable and thread-safe.
*/
Expand Down
10 changes: 5 additions & 5 deletions src-extra/main/java/javax/time/extra/SystemUTCRules.java
Expand Up @@ -46,7 +46,7 @@

/**
* System default UTC rules.
*
*
* <h4>Implementation notes</h4>
* This class is immutable and thread-safe.
*/
Expand Down Expand Up @@ -83,9 +83,9 @@ private Data(long[] dates, int[] offsets, long[] taiSeconds) {
final int[] offsets;
/** The table of TAI second when the new offset starts. */
final long[] taiSeconds;

/**
* @return The modified Julian Date of the newest leap second
* @return The modified Julian Date of the newest leap second
*/
public long getNewestDate() {
return dates[dates.length - 1];
Expand Down Expand Up @@ -225,7 +225,7 @@ private static Data loadLeapSeconds() {
/**
* Loads the leap second rules from a URL, often in a jar file.
*
* @param url the jar file to load, not null
* @param url the jar file to load, not null
* @throws Exception if an error occurs
*/
private static Data loadLeapSeconds(URL url) throws ClassNotFoundException, IOException {
Expand Down Expand Up @@ -267,7 +267,7 @@ private static Data loadLeapSeconds(URL url) throws ClassNotFoundException, IOEx

/**
* Gets the TAI seconds for the start of the day following the day passed in.
*
*
* @param changeMjd the MJD that the leap second is added to
* @param offset the new offset after the leap
* @return the TAI seconds
Expand Down
6 changes: 3 additions & 3 deletions src-extra/main/java/javax/time/extra/TAIInstant.java
Expand Up @@ -66,7 +66,7 @@
* It is intended that most applications will use the {@code Instant} class
* which uses the UTC-SLS mapping from UTC to guarantee 86400 seconds per day.
* Specialist applications with access to an accurate time-source may find this class useful.
*
*
* <h4>Time-scale</h4>
* <p>
* The TAI time-scale is a very simple well-regarded representation of time.
Expand All @@ -78,8 +78,8 @@
* This class may be used for instants in the far past and far future.
* Since some instants will be prior to 1958, it is not strictly an implementation of TAI.
* Instead, it is a proleptic time-scale based on TAI and equivalent to it since 1958.
*
*
*
*
* <h4>Implementation notes</h4>
* This class is immutable and thread-safe.
*/
Expand Down
2 changes: 1 addition & 1 deletion src-extra/main/java/javax/time/extra/TimeSource.java
Expand Up @@ -40,7 +40,7 @@
* This clock differs from {@link Clock} in providing access to the current instant
* in the UTC and TAI time-scales. However, there is currently no implementation that
* provides accurate UTC or TAI.
*
*
* <h4>Implementation notes</h4>
* This abstract class must be implemented with care to ensure other classes in
* the framework operate correctly.
Expand Down
4 changes: 2 additions & 2 deletions src-extra/main/java/javax/time/extra/UTCInstant.java
Expand Up @@ -66,7 +66,7 @@
* It is intended that most applications will use the {@code Instant} class
* which uses the UTC-SLS mapping from UTC to guarantee 86400 seconds per day.
* Specialist applications with access to an accurate time-source may find this class useful.
*
*
* <h4>Time-scale</h4>
* <p>
* The length of the solar day is the standard way that humans measure time.
Expand Down Expand Up @@ -95,7 +95,7 @@
* As such, the Time Framework for Java needs to define what the 1970 epoch actually means.
* The chosen definition follows the UTC definition given above, such that {@code 1970-01-01} is 10 seconds
* offset from TAI.
*
*
* <h4>Implementation notes</h4>
* This class is immutable and thread-safe.
*/
Expand Down
2 changes: 1 addition & 1 deletion src-extra/main/java/javax/time/extra/UTCRules.java
Expand Up @@ -44,7 +44,7 @@
* <p>
* The static methods on this class provide access to the system leap second rules.
* These are used by default.
*
*
* <h4>Implementation notes</h4>
* This is an abstract class and must be implemented with care
* to ensure other classes in the framework operate correctly.
Expand Down
2 changes: 1 addition & 1 deletion src-extra/main/java/javax/time/extra/WeekendRules.java
Expand Up @@ -39,7 +39,7 @@

/**
* A helper class for rules around weekends.
*
*
* <h4>Implementation notes</h4>
* This is a thread-safe utility class.
* All returned classes are immutable and thread-safe.
Expand Down
2 changes: 1 addition & 1 deletion src-extra/main/java/javax/time/extra/Weeks.java
Expand Up @@ -47,7 +47,7 @@
* The number of weeks may be queried using getWeeks().
* Basic mathematical operations are provided - plus(), minus(), multipliedBy(),
* dividedBy() and negated(), all of which return a new instance
*
*
* <h4>Implementation notes</h4>
* This class is immutable and thread-safe.
*/
Expand Down

0 comments on commit d929923

Please sign in to comment.