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: *

*

- * 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 '-'.
      * 

* 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} *

- * * 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 strictISO as true. *

* 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 */