diff --git a/src/example/org/joda/example/time/DateTimeBrowser.java b/src/example/org/joda/example/time/DateTimeBrowser.java index 798591d30..96bb28c21 100644 --- a/src/example/org/joda/example/time/DateTimeBrowser.java +++ b/src/example/org/joda/example/time/DateTimeBrowser.java @@ -51,7 +51,7 @@ import org.joda.time.DateTime; -/** DateTimeBrowser is a Java Swing application which reads a file contining +/** DateTimeBrowser is a Java Swing application which reads a file containing * strings and displays DateTime values in a JTable.
* The input strings must be suitable for instantiation
* of DateTime objects. The file is read, and an attempt is made
diff --git a/src/main/java/org/joda/time/Chronology.java b/src/main/java/org/joda/time/Chronology.java
index ea583a7a5..b0126b25c 100644
--- a/src/main/java/org/joda/time/Chronology.java
+++ b/src/main/java/org/joda/time/Chronology.java
@@ -75,7 +75,7 @@ public abstract class Chronology {
/**
* Returns an instance of this Chronology that operates in the UTC time
* zone. Chronologies that do not operate in a time zone or are already
- * UTC must return themself.
+ * UTC must return themselves.
*
* @return a version of this chronology that ignores time zones
*/
diff --git a/src/main/java/org/joda/time/DateMidnight.java b/src/main/java/org/joda/time/DateMidnight.java
index 05e348de9..addbb1e1f 100644
--- a/src/main/java/org/joda/time/DateMidnight.java
+++ b/src/main/java/org/joda/time/DateMidnight.java
@@ -42,7 +42,7 @@
* This class uses a Chronology internally. The Chronology determines how the
* millisecond instant value is converted into the date time fields.
* The default Chronology is ISOChronology
which is the agreed
- * international standard and compatable with the modern Gregorian calendar.
+ * international standard and compatible with the modern Gregorian calendar.
*
*
Each individual field can be queried in two ways: *
- * From v2.2, this method handles a daylight svaings time gap, setting the + * From v2.2, this method handles a daylight savings time gap, setting the * time to the last instant before the gap. *
* The DateTime attached to this property is unchanged by this call. @@ -2297,7 +2297,7 @@ public DateTime withMaximumValue() { * may need to call {@link DateTime#withEarlierOffsetAtOverlap()} on the result * to force the earlier time during a DST overlap if desired. *
- * From v2.2, this method handles a daylight svaings time gap, setting the + * From v2.2, this method handles a daylight savings time gap, setting the * time to the first instant after the gap. *
* The DateTime attached to this property is unchanged by this call. diff --git a/src/main/java/org/joda/time/DateTimeConstants.java b/src/main/java/org/joda/time/DateTimeConstants.java index 1f6437f3e..0c489d737 100644 --- a/src/main/java/org/joda/time/DateTimeConstants.java +++ b/src/main/java/org/joda/time/DateTimeConstants.java @@ -103,7 +103,7 @@ public class DateTimeConstants { /** * Constant (1) representing AD, years after zero (from Calendar). *
- * All new chronologies with differrent Era values should try to assign + * All new chronologies with different Era values should try to assign * eras as follows. The era that was in force at 1970-01-01 (ISO) is assigned * the value 1. Earlier eras are assigned sequentially smaller numbers. * Later eras are assigned sequentially greater numbers. @@ -112,7 +112,7 @@ public class DateTimeConstants { /** * Alternative constant (1) representing CE, Common Era (secular). *
- * All new chronologies with differrent Era values should try to assign + * All new chronologies with different Era values should try to assign * eras as follows. The era that was in force at 1970-01-01 (ISO) is assigned * the value 1. Earlier eras are assigned sequentially smaller numbers. * Later eras are assigned sequentially greater numbers. diff --git a/src/main/java/org/joda/time/DateTimeField.java b/src/main/java/org/joda/time/DateTimeField.java index 5246cefd8..021f1af65 100644 --- a/src/main/java/org/joda/time/DateTimeField.java +++ b/src/main/java/org/joda/time/DateTimeField.java @@ -251,7 +251,7 @@ public abstract class DateTimeField { *
* Partial instants only contain some fields. This may result in a maximum * possible value, such as TimeOfDay normally being limited to 23:59:59:999. - * If ths limit is reached by the addition, this method will wrap back to + * If this limit is reached by the addition, this method will wrap back to * 00:00:00.000. In fact, you would generally only use this method for * classes that have a limitation such as this. *
diff --git a/src/main/java/org/joda/time/DateTimeFieldType.java b/src/main/java/org/joda/time/DateTimeFieldType.java
index 26bfdfd00..e6f8fcc42 100644
--- a/src/main/java/org/joda/time/DateTimeFieldType.java
+++ b/src/main/java/org/joda/time/DateTimeFieldType.java
@@ -435,7 +435,7 @@ private static class StandardDateTimeFieldType extends DateTimeFieldType {
* Constructor.
*
* @param name the name to use
- * @param ordinal the byte value for the oridinal index
+ * @param ordinal the byte value for the ordinal index
* @param unitType the unit duration type
* @param rangeType the range duration type
*/
diff --git a/src/main/java/org/joda/time/DateTimeZone.java b/src/main/java/org/joda/time/DateTimeZone.java
index b4e87aa45..71a3d8fc2 100644
--- a/src/main/java/org/joda/time/DateTimeZone.java
+++ b/src/main/java/org/joda/time/DateTimeZone.java
@@ -1259,7 +1259,7 @@ public java.util.TimeZone toTimeZone() {
public abstract boolean equals(Object object);
/**
- * Gets a hash code compatable with equals.
+ * Gets a hash code compatible with equals.
*
* @return suitable hashcode
*/
diff --git a/src/main/java/org/joda/time/Days.java b/src/main/java/org/joda/time/Days.java
index 116cc7d19..e4dd1fec6 100644
--- a/src/main/java/org/joda/time/Days.java
+++ b/src/main/java/org/joda/time/Days.java
@@ -62,7 +62,7 @@ public final class Days extends BaseSingleFieldPeriod {
/** Constant representing the minimum number of days that can be stored in this object. */
public static final Days MIN_VALUE = new Days(Integer.MIN_VALUE);
- /** The paser to use for this class. */
+ /** The parser to use for this class. */
private static final PeriodFormatter PARSER = ISOPeriodFormat.standard().withParseType(PeriodType.days());
/** Serialization version. */
private static final long serialVersionUID = 87525275727380865L;
@@ -106,7 +106,7 @@ public static Days days(int days) {
//-----------------------------------------------------------------------
/**
* Creates a Days
representing the number of whole days
- * between the two specified datetimes. This method corectly handles
+ * between the two specified datetimes. This method correctly handles
* any daylight savings time changes that may occur during the interval.
*
* @param start the start instant, must not be null
@@ -144,7 +144,7 @@ public static Days daysBetween(ReadablePartial start, ReadablePartial end) {
/**
* Creates a Days
representing the number of whole days
- * in the specified interval. This method corectly handles any daylight
+ * in the specified interval. This method correctly handles any daylight
* savings time changes that may occur during the interval.
*
* @param interval the interval to extract days from, null returns zero
diff --git a/src/main/java/org/joda/time/Hours.java b/src/main/java/org/joda/time/Hours.java
index fbca006e3..471c1dde3 100644
--- a/src/main/java/org/joda/time/Hours.java
+++ b/src/main/java/org/joda/time/Hours.java
@@ -64,7 +64,7 @@ public final class Hours extends BaseSingleFieldPeriod {
/** Constant representing the minimum number of hours that can be stored in this object. */
public static final Hours MIN_VALUE = new Hours(Integer.MIN_VALUE);
- /** The paser to use for this class. */
+ /** The parser to use for this class. */
private static final PeriodFormatter PARSER = ISOPeriodFormat.standard().withParseType(PeriodType.hours());
/** Serialization version. */
private static final long serialVersionUID = 87525275727380864L;
diff --git a/src/main/java/org/joda/time/IllegalFieldValueException.java b/src/main/java/org/joda/time/IllegalFieldValueException.java
index f588a853a..b45c9fec4 100644
--- a/src/main/java/org/joda/time/IllegalFieldValueException.java
+++ b/src/main/java/org/joda/time/IllegalFieldValueException.java
@@ -32,7 +32,7 @@ public class IllegalFieldValueException extends IllegalArgumentException {
* @param fieldName the field name
* @param value the value rejected
* @param lowerBound the lower bound allowed
- * @param upperBound the uppe bound allowed
+ * @param upperBound the upper bound allowed
* @param explain an explanation
* @return the message
*/
diff --git a/src/main/java/org/joda/time/LocalDate.java b/src/main/java/org/joda/time/LocalDate.java
index b0c2b5afb..9779fca84 100644
--- a/src/main/java/org/joda/time/LocalDate.java
+++ b/src/main/java/org/joda/time/LocalDate.java
@@ -509,7 +509,7 @@ protected DateTimeField getField(int index, Chronology chrono) {
}
/**
- * Gets the value of the field at the specifed index.
+ * Gets the value of the field at the specified index.
*
* This method is required to support the ReadablePartial
* interface. The supported fields are Year, MonthOfYear and DayOfMonth.
@@ -1567,7 +1567,7 @@ public LocalDate withEra(int era) {
* Instead, this method returns a new instance with the value of
* century of era changed.
*
- * @param centuryOfEra the centurey of era to set
+ * @param centuryOfEra the century of era to set
* @return a copy of this object with the field set
* @throws IllegalArgumentException if the value is invalid
*/
diff --git a/src/main/java/org/joda/time/LocalDateTime.java b/src/main/java/org/joda/time/LocalDateTime.java
index b31ee6cb7..bd263260f 100644
--- a/src/main/java/org/joda/time/LocalDateTime.java
+++ b/src/main/java/org/joda/time/LocalDateTime.java
@@ -564,7 +564,7 @@ protected DateTimeField getField(int index, Chronology chrono) {
}
/**
- * Gets the value of the field at the specifed index.
+ * Gets the value of the field at the specified index.
*
* This method is required to support the ReadablePartial
* interface. The supported fields are Year, MonthOfDay, DayOfMonth and MillisOfDay.
@@ -1700,7 +1700,7 @@ public LocalDateTime withEra(int era) {
* Instead, this method returns a new instance with the value of
* century of era changed.
*
- * @param centuryOfEra the centurey of era to set
+ * @param centuryOfEra the century of era to set
* @return a copy of this object with the field set
* @throws IllegalArgumentException if the value is invalid
*/
diff --git a/src/main/java/org/joda/time/LocalTime.java b/src/main/java/org/joda/time/LocalTime.java
index 6c3c57778..ce7098245 100644
--- a/src/main/java/org/joda/time/LocalTime.java
+++ b/src/main/java/org/joda/time/LocalTime.java
@@ -560,7 +560,7 @@ protected DateTimeField getField(int index, Chronology chrono) {
}
/**
- * Gets the value of the field at the specifed index.
+ * Gets the value of the field at the specified index.
*
* This method is required to support the ReadablePartial
* interface. The supported fields are HourOfDay, MinuteOfHour,
@@ -1264,7 +1264,7 @@ public Property millisOfDay() {
* setting the time fields from this instance and the date fields from
* the current date.
*
- * @return this time as a datetime using todays date
+ * @return this time as a datetime using today's date
*/
public DateTime toDateTimeToday() {
return toDateTimeToday(null);
@@ -1279,7 +1279,7 @@ public DateTime toDateTimeToday() {
* specified.
*
* @param zone the zone to use, null means default
- * @return this time as a datetime using todays date
+ * @return this time as a datetime using today's date
*/
public DateTime toDateTimeToday(DateTimeZone zone) {
Chronology chrono = getChronology().withZone(zone);
diff --git a/src/main/java/org/joda/time/Minutes.java b/src/main/java/org/joda/time/Minutes.java
index 0f96dabfc..302c51db9 100644
--- a/src/main/java/org/joda/time/Minutes.java
+++ b/src/main/java/org/joda/time/Minutes.java
@@ -54,7 +54,7 @@ public final class Minutes extends BaseSingleFieldPeriod {
/** Constant representing the minimum number of minutes that can be stored in this object. */
public static final Minutes MIN_VALUE = new Minutes(Integer.MIN_VALUE);
- /** The paser to use for this class. */
+ /** The parser to use for this class. */
private static final PeriodFormatter PARSER = ISOPeriodFormat.standard().withParseType(PeriodType.minutes());
/** Serialization version. */
private static final long serialVersionUID = 87525275727380863L;
diff --git a/src/main/java/org/joda/time/Months.java b/src/main/java/org/joda/time/Months.java
index 99cb5b4d4..034f18809 100644
--- a/src/main/java/org/joda/time/Months.java
+++ b/src/main/java/org/joda/time/Months.java
@@ -126,7 +126,7 @@ public static Months months(int months) {
//-----------------------------------------------------------------------
/**
* Creates a Months
representing the number of whole months
- * between the two specified datetimes. This method corectly handles
+ * between the two specified datetimes. This method correctly handles
* any daylight savings time changes that may occur during the interval.
*
* This method calculates by adding months to the start date until the result
@@ -172,7 +172,7 @@ public static Months monthsBetween(ReadablePartial start, ReadablePartial end) {
/**
* Creates a Months
representing the number of whole months
- * in the specified interval. This method corectly handles any daylight
+ * in the specified interval. This method correctly handles any daylight
* savings time changes that may occur during the interval.
*
* @param interval the interval to extract months from, null returns zero
diff --git a/src/main/java/org/joda/time/Partial.java b/src/main/java/org/joda/time/Partial.java
index a97311651..7b589f798 100644
--- a/src/main/java/org/joda/time/Partial.java
+++ b/src/main/java/org/joda/time/Partial.java
@@ -583,7 +583,7 @@ public Partial withFieldAdded(DurationFieldType fieldType, int amount) {
*
* If the addition is zero, then this
is returned.
* The addition will overflow into larger fields (eg. minute to hour).
- * If the maximum is reached, the addition will wra.
+ * If the maximum is reached, the addition will wrap.
*
* @param fieldType the field type to add to, not null
* @param amount the amount to add
diff --git a/src/main/java/org/joda/time/Period.java b/src/main/java/org/joda/time/Period.java
index 16ac2903e..5b7a79076 100644
--- a/src/main/java/org/joda/time/Period.java
+++ b/src/main/java/org/joda/time/Period.java
@@ -285,7 +285,7 @@ public static Period fieldDifference(ReadablePartial start, ReadablePartial end)
*
* Bear in mind that this creates four period instances in total, three of
* which are immediately discarded.
- * The alterative is more efficient, but less readable:
+ * The alternative is more efficient, but less readable:
*
* Period = new Period(6, 3, 0, 0, 0, 0, 23, 0); *diff --git a/src/main/java/org/joda/time/ReadableDuration.java b/src/main/java/org/joda/time/ReadableDuration.java index 06b8b8b44..c789b0471 100644 --- a/src/main/java/org/joda/time/ReadableDuration.java +++ b/src/main/java/org/joda/time/ReadableDuration.java @@ -126,7 +126,7 @@ public interface ReadableDuration extends Comparable
diff --git a/src/main/java/org/joda/time/ReadableInterval.java b/src/main/java/org/joda/time/ReadableInterval.java index 73a494f1e..985d1fac6 100644 --- a/src/main/java/org/joda/time/ReadableInterval.java +++ b/src/main/java/org/joda/time/ReadableInterval.java @@ -294,7 +294,7 @@ public interface ReadableInterval { boolean equals(Object readableInterval); /** - * Gets a hash code for the time interval that is compatable with the + * Gets a hash code for the time interval that is compatible with the * equals method. ** The formula used must be as follows: diff --git a/src/main/java/org/joda/time/Seconds.java b/src/main/java/org/joda/time/Seconds.java index 7ee4e373a..47f20bce6 100644 --- a/src/main/java/org/joda/time/Seconds.java +++ b/src/main/java/org/joda/time/Seconds.java @@ -54,7 +54,7 @@ public final class Seconds extends BaseSingleFieldPeriod { /** Constant representing the minimum number of seconds that can be stored in this object. */ public static final Seconds MIN_VALUE = new Seconds(Integer.MIN_VALUE); - /** The paser to use for this class. */ + /** The parser to use for this class. */ private static final PeriodFormatter PARSER = ISOPeriodFormat.standard().withParseType(PeriodType.seconds()); /** Serialization version. */ private static final long serialVersionUID = 87525275727380862L; diff --git a/src/main/java/org/joda/time/TimeOfDay.java b/src/main/java/org/joda/time/TimeOfDay.java index 7c46912ad..1fcef029b 100644 --- a/src/main/java/org/joda/time/TimeOfDay.java +++ b/src/main/java/org/joda/time/TimeOfDay.java @@ -1108,7 +1108,7 @@ public TimeOfDay addToCopy(int valueToAdd) { * Smaller fields are unaffected. *
* If the result would be too large (beyond 23:59:59:999) or too - * small (less than 00:00:00.000) then an Execption is thrown. + * small (less than 00:00:00.000) then an Exception is thrown. * For the alternate behaviour which wraps to the next 'day', * see {@link #addToCopy(int)}. *
diff --git a/src/main/java/org/joda/time/Weeks.java b/src/main/java/org/joda/time/Weeks.java index 70866af6c..da9f420a3 100644 --- a/src/main/java/org/joda/time/Weeks.java +++ b/src/main/java/org/joda/time/Weeks.java @@ -54,7 +54,7 @@ public final class Weeks extends BaseSingleFieldPeriod { /** Constant representing the minimum number of weeks that can be stored in this object. */ public static final Weeks MIN_VALUE = new Weeks(Integer.MIN_VALUE); - /** The paser to use for this class. */ + /** The parser to use for this class. */ private static final PeriodFormatter PARSER = ISOPeriodFormat.standard().withParseType(PeriodType.weeks()); /** Serialization version. */ private static final long serialVersionUID = 87525275727380866L; diff --git a/src/main/java/org/joda/time/YearMonthDay.java b/src/main/java/org/joda/time/YearMonthDay.java index 661a4c31a..cf4ddf433 100644 --- a/src/main/java/org/joda/time/YearMonthDay.java +++ b/src/main/java/org/joda/time/YearMonthDay.java @@ -89,7 +89,7 @@ public final class YearMonthDay *
* Each field is queried from the Calendar and assigned to the YearMonthDay. * This is useful if you have been using the Calendar as a local date, - * ignoing the zone. + * ignoring the zone. *
* This factory method ignores the type of the calendar and always * creates a YearMonthDay with ISO chronology. It is expected that you @@ -119,7 +119,7 @@ public static YearMonthDay fromCalendarFields(Calendar calendar) { *
* Each field is queried from the Date and assigned to the YearMonthDay. * This is useful if you have been using the Date as a local date, - * ignoing the zone. + * ignoring the zone. *
* This factory method always creates a YearMonthDay with ISO chronology. * @@ -222,7 +222,7 @@ public YearMonthDay(long instant, Chronology chronology) { * The chronology used will be derived from the object, defaulting to ISO. *
* NOTE: Prior to v1.3 the string format was described by - * {@link ISODateTimeFormat#dateTimeParser()}. Time ony strings are now rejected. + * {@link ISODateTimeFormat#dateTimeParser()}. Time only strings are now rejected. * * @param instant the datetime object, null means now * @throws IllegalArgumentException if the instant is invalid diff --git a/src/main/java/org/joda/time/Years.java b/src/main/java/org/joda/time/Years.java index e7faa69dc..d78289b97 100644 --- a/src/main/java/org/joda/time/Years.java +++ b/src/main/java/org/joda/time/Years.java @@ -54,7 +54,7 @@ public final class Years extends BaseSingleFieldPeriod { /** Constant representing the minimum number of years that can be stored in this object. */ public static final Years MIN_VALUE = new Years(Integer.MIN_VALUE); - /** The paser to use for this class. */ + /** The parser to use for this class. */ private static final PeriodFormatter PARSER = ISOPeriodFormat.standard().withParseType(PeriodType.years()); /** Serialization version. */ private static final long serialVersionUID = 87525275727380868L; @@ -90,7 +90,7 @@ public static Years years(int years) { //----------------------------------------------------------------------- /** * Creates a
Years
representing the number of whole years - * between the two specified datetimes. This method corectly handles + * between the two specified datetimes. This method correctly handles * any daylight savings time changes that may occur during the interval. * * @param start the start instant, must not be null @@ -128,7 +128,7 @@ public static Years yearsBetween(ReadablePartial start, ReadablePartial end) { /** * Creates aYears
representing the number of whole years - * in the specified interval. This method corectly handles any daylight + * in the specified interval. This method correctly handles any daylight * savings time changes that may occur during the interval. * * @param interval the interval to extract years from, null returns zero diff --git a/src/main/java/org/joda/time/base/AbstractDateTime.java b/src/main/java/org/joda/time/base/AbstractDateTime.java index 0c0069f30..ce31b3a67 100644 --- a/src/main/java/org/joda/time/base/AbstractDateTime.java +++ b/src/main/java/org/joda/time/base/AbstractDateTime.java @@ -260,7 +260,7 @@ public int getMillisOfSecond() { * differ in accuracy. Joda-Time's implementation is generally more up to * date and thus more accurate - for example JDK1.3 has no historical data. * The effect of this is that the field values of theCalendar
- * may differ from those of this object, even though the milliseond value + * may differ from those of this object, even though the millisecond value * is the same. Most of the time this just means that the JDK field values * are wrong, as our time zone information is more up to date. * @@ -285,7 +285,7 @@ public Calendar toCalendar(Locale locale) { * differ in accuracy. Joda-Time's implementation is generally more up to * date and thus more accurate - for example JDK1.3 has no historical data. * The effect of this is that the field values of theCalendar
- * may differ from those of this object, even though the milliseond value + * may differ from those of this object, even though the millisecond value * is the same. Most of the time this just means that the JDK field values * are wrong, as our time zone information is more up to date. * diff --git a/src/main/java/org/joda/time/base/AbstractPartial.java b/src/main/java/org/joda/time/base/AbstractPartial.java index 419a52b64..b6f816276 100644 --- a/src/main/java/org/joda/time/base/AbstractPartial.java +++ b/src/main/java/org/joda/time/base/AbstractPartial.java @@ -69,7 +69,7 @@ protected AbstractPartial() { //----------------------------------------------------------------------- /** - * Gets the field type at the specifed index. + * Gets the field type at the specified index. * * @param index the index * @return the field type @@ -95,7 +95,7 @@ public DateTimeFieldType[] getFieldTypes() { } /** - * Gets the field at the specifed index. + * Gets the field at the specified index. * * @param index the index * @return the field diff --git a/src/main/java/org/joda/time/base/BaseLocal.java b/src/main/java/org/joda/time/base/BaseLocal.java index dade06b99..fd33614d0 100644 --- a/src/main/java/org/joda/time/base/BaseLocal.java +++ b/src/main/java/org/joda/time/base/BaseLocal.java @@ -53,7 +53,7 @@ protected BaseLocal() { * Gets the local milliseconds from the Java epoch * of 1970-01-01T00:00:00 (not fixed to any specific time zone). *- * This method is useful in certain circustances for high performance + * This method is useful in certain circumstances for high performance * access to the datetime fields. * * @return the number of milliseconds since 1970-01-01T00:00:00 diff --git a/src/main/java/org/joda/time/base/BasePartial.java b/src/main/java/org/joda/time/base/BasePartial.java index bfffa7246..d711a5251 100644 --- a/src/main/java/org/joda/time/base/BasePartial.java +++ b/src/main/java/org/joda/time/base/BasePartial.java @@ -215,7 +215,7 @@ protected BasePartial(BasePartial base, Chronology chrono) { //----------------------------------------------------------------------- /** - * Gets the value of the field at the specifed index. + * Gets the value of the field at the specified index. * * @param index the index * @return the value diff --git a/src/main/java/org/joda/time/base/BasePeriod.java b/src/main/java/org/joda/time/base/BasePeriod.java index 96b473893..512469bce 100644 --- a/src/main/java/org/joda/time/base/BasePeriod.java +++ b/src/main/java/org/joda/time/base/BasePeriod.java @@ -284,7 +284,7 @@ protected BasePeriod(Object period, PeriodType type, Chronology chrono) { /** * Constructor used when we trust ourselves. - * Do not expose publically. + * Do not expose publicly. * * @param values the values to use, not null, not cloned * @param type which set of fields this period supports, not null diff --git a/src/main/java/org/joda/time/chrono/AssembledChronology.java b/src/main/java/org/joda/time/chrono/AssembledChronology.java index 663813ca9..13c2de172 100644 --- a/src/main/java/org/joda/time/chrono/AssembledChronology.java +++ b/src/main/java/org/joda/time/chrono/AssembledChronology.java @@ -94,7 +94,7 @@ public abstract class AssembledChronology extends BaseChronology { * as AbstractChronology. * * @param base optional base chronology to copy initial fields from - * @param param optional param object avalable for assemble method + * @param param optional param object available for assemble method */ protected AssembledChronology(Chronology base, Object param) { iBase = base; diff --git a/src/main/java/org/joda/time/chrono/BaseChronology.java b/src/main/java/org/joda/time/chrono/BaseChronology.java index fded10cf0..0d025d687 100644 --- a/src/main/java/org/joda/time/chrono/BaseChronology.java +++ b/src/main/java/org/joda/time/chrono/BaseChronology.java @@ -65,7 +65,7 @@ protected BaseChronology() { /** * Returns an instance of this Chronology that operates in the UTC time * zone. Chronologies that do not operate in a time zone or are already - * UTC must return themself. + * UTC must return themselves. * * @return a version of this chronology that ignores time zones */ diff --git a/src/main/java/org/joda/time/chrono/BasicYearDateTimeField.java b/src/main/java/org/joda/time/chrono/BasicYearDateTimeField.java index e7f2516d1..b7965f0d6 100644 --- a/src/main/java/org/joda/time/chrono/BasicYearDateTimeField.java +++ b/src/main/java/org/joda/time/chrono/BasicYearDateTimeField.java @@ -40,7 +40,7 @@ class BasicYearDateTimeField extends ImpreciseDateTimeField { /** * Restricted constructor. * - * @param chronology the chronology this field belogs to + * @param chronology the chronology this field belongs to */ BasicYearDateTimeField(BasicChronology chronology) { super(DateTimeFieldType.year(), chronology.getAverageMillisPerYear()); diff --git a/src/main/java/org/joda/time/chrono/BuddhistChronology.java b/src/main/java/org/joda/time/chrono/BuddhistChronology.java index 124764de8..99a7d3e45 100644 --- a/src/main/java/org/joda/time/chrono/BuddhistChronology.java +++ b/src/main/java/org/joda/time/chrono/BuddhistChronology.java @@ -41,7 +41,7 @@ * However, the actual rules for Thailand are much more involved than * this class covers. (This class is accurate after 1941-01-01 ISO). *
- * This chronlogy is being retained for those who want a same effect + * This chronology is being retained for those who want a same effect * replacement for the Sun class. It is hoped that community support will * enable a more accurate chronology for Thailand, to be developed. *
diff --git a/src/main/java/org/joda/time/chrono/ISOYearOfEraDateTimeField.java b/src/main/java/org/joda/time/chrono/ISOYearOfEraDateTimeField.java index aba1a89d3..7d0b6bc2e 100644 --- a/src/main/java/org/joda/time/chrono/ISOYearOfEraDateTimeField.java +++ b/src/main/java/org/joda/time/chrono/ISOYearOfEraDateTimeField.java @@ -23,7 +23,7 @@ import org.joda.time.field.FieldUtils; /** - * This field is not publicy exposed by ISOChronology, but rather it is used to + * This field is not publicly exposed by ISOChronology, but rather it is used to * build the yearOfCentury and centuryOfEra fields. It merely drops the sign of * the year. * diff --git a/src/main/java/org/joda/time/convert/ConverterManager.java b/src/main/java/org/joda/time/convert/ConverterManager.java index db12dab7c..5b90532ad 100644 --- a/src/main/java/org/joda/time/convert/ConverterManager.java +++ b/src/main/java/org/joda/time/convert/ConverterManager.java @@ -184,7 +184,7 @@ public InstantConverter[] getInstantConverters() { * already in the set, the given converter replaces it. If the converter is * exactly the same as one already in the set, no changes are made. *
- * The order in which converters are added is not relevent. The best + * The order in which converters are added is not relevant. The best * converter is selected by examining the object hierarchy. * * @param converter the converter to add, null ignored @@ -271,7 +271,7 @@ public PartialConverter[] getPartialConverters() { * already in the set, the given converter replaces it. If the converter is * exactly the same as one already in the set, no changes are made. *
- * The order in which converters are added is not relevent. The best + * The order in which converters are added is not relevant. The best * converter is selected by examining the object hierarchy. * * @param converter the converter to add, null ignored @@ -358,7 +358,7 @@ public DurationConverter[] getDurationConverters() { * already in the set, the given converter replaces it. If the converter is * exactly the same as one already in the set, no changes are made. *
- * The order in which converters are added is not relevent. The best + * The order in which converters are added is not relevant. The best * converter is selected by examining the object hierarchy. * * @param converter the converter to add, null ignored @@ -445,7 +445,7 @@ public PeriodConverter[] getPeriodConverters() { * already in the set, the given converter replaces it. If the converter is * exactly the same as one already in the set, no changes are made. *
- * The order in which converters are added is not relevent. The best + * The order in which converters are added is not relevant. The best * converter is selected by examining the object hierarchy. * * @param converter the converter to add, null ignored @@ -532,7 +532,7 @@ public IntervalConverter[] getIntervalConverters() { * already in the set, the given converter replaces it. If the converter is * exactly the same as one already in the set, no changes are made. *
- * The order in which converters are added is not relevent. The best + * The order in which converters are added is not relevant. The best * converter is selected by examining the object hierarchy. * * @param converter the converter to add, null ignored diff --git a/src/main/java/org/joda/time/field/BaseDateTimeField.java b/src/main/java/org/joda/time/field/BaseDateTimeField.java index c86bf1c3a..da19ad143 100644 --- a/src/main/java/org/joda/time/field/BaseDateTimeField.java +++ b/src/main/java/org/joda/time/field/BaseDateTimeField.java @@ -359,7 +359,7 @@ public int[] add(ReadablePartial instant, int fieldIndex, int[] values, int valu *
* Partial instants only contain some fields. This may result in a maximum * possible value, such as TimeOfDay normally being limited to 23:59:59:999. - * If ths limit is reached by the addition, this method will wrap back to + * If this limit is reached by the addition, this method will wrap back to * 00:00:00.000. In fact, you would generally only use this method for * classes that have a limitation such as this. *
diff --git a/src/main/java/org/joda/time/field/BaseDurationField.java b/src/main/java/org/joda/time/field/BaseDurationField.java index 310d354d7..98d6c4245 100644 --- a/src/main/java/org/joda/time/field/BaseDurationField.java +++ b/src/main/java/org/joda/time/field/BaseDurationField.java @@ -40,7 +40,7 @@ public abstract class BaseDurationField extends DurationField implements Seriali /** Serialization lock. */ private static final long serialVersionUID = -2554245107589433218L; - /** A desriptive name for the field. */ + /** A descriptive name for the field. */ private final DurationFieldType iType; protected BaseDurationField(DurationFieldType type) { diff --git a/src/main/java/org/joda/time/field/SkipDateTimeField.java b/src/main/java/org/joda/time/field/SkipDateTimeField.java index b14e7cfda..1a2bd22df 100644 --- a/src/main/java/org/joda/time/field/SkipDateTimeField.java +++ b/src/main/java/org/joda/time/field/SkipDateTimeField.java @@ -47,7 +47,7 @@ public final class SkipDateTimeField extends DelegatedDateTimeField { /** * Constructor that skips zero. * - * @param chronology the chronoogy to use + * @param chronology the chronology to use * @param field the field to skip zero on */ public SkipDateTimeField(Chronology chronology, DateTimeField field) { @@ -57,7 +57,7 @@ public SkipDateTimeField(Chronology chronology, DateTimeField field) { /** * Constructor. * - * @param chronology the chronoogy to use + * @param chronology the chronology to use * @param field the field to skip zero on * @param skip the value to skip */ diff --git a/src/main/java/org/joda/time/field/SkipUndoDateTimeField.java b/src/main/java/org/joda/time/field/SkipUndoDateTimeField.java index 4ef63003b..213497daa 100644 --- a/src/main/java/org/joda/time/field/SkipUndoDateTimeField.java +++ b/src/main/java/org/joda/time/field/SkipUndoDateTimeField.java @@ -46,7 +46,7 @@ public final class SkipUndoDateTimeField extends DelegatedDateTimeField { /** * Constructor that reinserts zero. * - * @param chronology the chronoogy to use + * @param chronology the chronology to use * @param field the field to skip zero on */ public SkipUndoDateTimeField(Chronology chronology, DateTimeField field) { @@ -56,7 +56,7 @@ public SkipUndoDateTimeField(Chronology chronology, DateTimeField field) { /** * Constructor. * - * @param chronology the chronoogy to use + * @param chronology the chronology to use * @param field the field to skip zero on * @param skip the value to skip */ diff --git a/src/main/java/org/joda/time/field/UnsupportedDateTimeField.java b/src/main/java/org/joda/time/field/UnsupportedDateTimeField.java index 3c18228cb..897baf788 100644 --- a/src/main/java/org/joda/time/field/UnsupportedDateTimeField.java +++ b/src/main/java/org/joda/time/field/UnsupportedDateTimeField.java @@ -33,7 +33,7 @@ */ public final class UnsupportedDateTimeField extends DateTimeField implements Serializable { - /** Serialilzation version */ + /** Serialization version */ private static final long serialVersionUID = -1934618396111902255L; /** The cache of unsupported datetime field instances */ diff --git a/src/main/java/org/joda/time/field/UnsupportedDurationField.java b/src/main/java/org/joda/time/field/UnsupportedDurationField.java index bf44e013a..12264485e 100644 --- a/src/main/java/org/joda/time/field/UnsupportedDurationField.java +++ b/src/main/java/org/joda/time/field/UnsupportedDurationField.java @@ -219,7 +219,7 @@ public long getUnitMillis() { } /** - * Always returns zero, indicating that sort order is not relevent. + * Always returns zero, indicating that sort order is not relevant. * * @return zero always */ diff --git a/src/main/java/org/joda/time/format/DateTimeFormat.java b/src/main/java/org/joda/time/format/DateTimeFormat.java index c947d43a7..89bb54d31 100644 --- a/src/main/java/org/joda/time/format/DateTimeFormat.java +++ b/src/main/java/org/joda/time/format/DateTimeFormat.java @@ -42,7 +42,7 @@ * two character style, representing short, medium, long and full. * *
- * For example, to use a patterm: + * For example, to use a pattern: *
* DateTime dt = new DateTime(); * DateTimeFormatter fmt = DateTimeFormat.forPattern("MMMM, yyyy"); @@ -183,7 +183,7 @@ public static DateTimeFormatter forPattern(String pattern) { * The first character is the date style, and the second character is the * time style. Specify a character of 'S' for short style, 'M' for medium, * 'L' for long, and 'F' for full. - * A date or time may be ommitted by specifying a style character '-'. + * A date or time may be omitted by specifying a style character '-'. *- * * indiates that this is not an official ISO format and can be excluded + * * indicates that this is not an official ISO format and can be excluded * by passing in* The returned formatter will dynamically adjust to the locale that * the print/parse takes place in. Thus you just call @@ -207,7 +207,7 @@ public static DateTimeFormatter forStyle(String style) { * The first character is the date style, and the second character is the * time style. Specify a character of 'S' for short style, 'M' for medium, * 'L' for long, and 'F' for full. - * A date or time may be ommitted by specifying a style character '-'. + * A date or time may be omitted by specifying a style character '-'. * * @param style two characters from the set {"S", "M", "L", "F", "-"} * @param locale locale to use, null means default @@ -702,7 +702,7 @@ private static DateTimeFormatter createFormatterForPattern(String pattern) { * Select a format from a two character style pattern. The first character * is the date style, and the second character is the time style. Specify a * character of 'S' for short style, 'M' for medium, 'L' for long, and 'F' - * for full. A date or time may be ommitted by specifying a style character '-'. + * for full. A date or time may be omitted by specifying a style character '-'. * * @param style two characters from the set {"S", "M", "L", "F", "-"} * @throws IllegalArgumentException if the style is invalid diff --git a/src/main/java/org/joda/time/format/ISODateTimeFormat.java b/src/main/java/org/joda/time/format/ISODateTimeFormat.java index 27d54b792..49488ed62 100644 --- a/src/main/java/org/joda/time/format/ISODateTimeFormat.java +++ b/src/main/java/org/joda/time/format/ISODateTimeFormat.java @@ -127,7 +127,7 @@ protected ISODateTimeFormat() { * -20-.040 -20-.040 minute/milli * * plus datetime formats like {date}T{time} *
strictISO
astrue
. ** This method can side effect the input collection of fields. diff --git a/src/main/java/org/joda/time/format/PeriodFormatterBuilder.java b/src/main/java/org/joda/time/format/PeriodFormatterBuilder.java index 79dac4874..be7cfbf1d 100644 --- a/src/main/java/org/joda/time/format/PeriodFormatterBuilder.java +++ b/src/main/java/org/joda/time/format/PeriodFormatterBuilder.java @@ -215,7 +215,7 @@ public PeriodFormatterBuilder append(PeriodFormatter formatter) { * Appends a printer parser pair. *
* Either the printer or the parser may be null, in which case the builder will - * be unable to produce a parser or printer repectively. + * be unable to produce a parser or printer respectively. * * @param printer appends a printer to the builder, null if printing is not supported * @param parser appends a parser to the builder, null if parsing is not supported @@ -308,7 +308,7 @@ public PeriodFormatterBuilder printZeroRarelyFirst() { } /** - * Print zero values for the next and following appened fields only if the + * Print zero values for the next and following appended fields only if the * period supports it. * * @return this PeriodFormatterBuilder diff --git a/src/main/java/org/joda/time/tz/FixedDateTimeZone.java b/src/main/java/org/joda/time/tz/FixedDateTimeZone.java index 7d17d7d88..763008a10 100644 --- a/src/main/java/org/joda/time/tz/FixedDateTimeZone.java +++ b/src/main/java/org/joda/time/tz/FixedDateTimeZone.java @@ -70,7 +70,7 @@ public long previousTransition(long instant) { } /** - * Override to return the correct timzone instance. + * Override to return the correct timezone instance. * @since 1.5 */ public java.util.TimeZone toTimeZone() { diff --git a/src/test/java/org/joda/time/field/TestUnsupportedDateTimeField.java b/src/test/java/org/joda/time/field/TestUnsupportedDateTimeField.java index 661f2dbee..12161d33c 100644 --- a/src/test/java/org/joda/time/field/TestUnsupportedDateTimeField.java +++ b/src/test/java/org/joda/time/field/TestUnsupportedDateTimeField.java @@ -72,7 +72,7 @@ public void testNullValuesToGetInstanceThrowsException() { * different duration fields * * Then the field returned in the first invocation should not be equal to - * the field returned by the second invocation. In otherwords, the generated + * the field returned by the second invocation. In other words, the generated * instance should be the same for a unique pairing of * DateTimeFieldType/DurationField */