You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2020/12/17 19:39:14 UTC
[commons-lang] branch master updated: Fix spelling.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git
The following commit(s) were added to refs/heads/master by this push:
new e964781 Fix spelling.
e964781 is described below
commit e9647813f7a846318b228b5d4ba01470d88496c6
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Dec 17 14:39:09 2020 -0500
Fix spelling.
---
src/main/java/org/apache/commons/lang3/time/DateUtils.java | 8 ++++----
.../java/org/apache/commons/lang3/time/DurationFormatUtils.java | 4 ++--
src/main/java/org/apache/commons/lang3/time/FastDateParser.java | 2 +-
src/main/java/org/apache/commons/lang3/time/FastDatePrinter.java | 4 ++--
src/main/java/org/apache/commons/lang3/time/FastTimeZone.java | 2 +-
src/main/java/org/apache/commons/lang3/time/FormatCache.java | 2 +-
src/main/java/org/apache/commons/lang3/time/GmtTimeZone.java | 2 +-
7 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/src/main/java/org/apache/commons/lang3/time/DateUtils.java b/src/main/java/org/apache/commons/lang3/time/DateUtils.java
index 9522c9d..fddfcbb 100644
--- a/src/main/java/org/apache/commons/lang3/time/DateUtils.java
+++ b/src/main/java/org/apache/commons/lang3/time/DateUtils.java
@@ -45,7 +45,7 @@ import org.apache.commons.lang3.Validate;
* <p>
* Several methods are provided for adding to {@code Date} objects, of the form
* {@code addXXX(Date date, int amount)}. It is important to note these methods
- * use a {@code Calendar} internally (with default timezone and locale) and may
+ * use a {@code Calendar} internally (with default time zone and locale) and may
* be affected by changes to daylight saving time (DST).
* </p>
*
@@ -686,7 +686,7 @@ public class DateUtils {
* 28 Mar 2002 14:00:00.000. If this was passed with MONTH, it
* would return 1 April 2002 0:00:00.000.</p>
*
- * <p>For a date in a timezone that handles the change to daylight
+ * <p>For a date in a time zone that handles the change to daylight
* saving time, rounding to Calendar.HOUR_OF_DAY will behave as follows.
* Suppose daylight saving time begins at 02:00 on March 30. Rounding a
* date that crosses this time would produce the following values:
@@ -720,7 +720,7 @@ public class DateUtils {
* 28 Mar 2002 14:00:00.000. If this was passed with MONTH, it
* would return 1 April 2002 0:00:00.000.</p>
*
- * <p>For a date in a timezone that handles the change to daylight
+ * <p>For a date in a time zone that handles the change to daylight
* saving time, rounding to Calendar.HOUR_OF_DAY will behave as follows.
* Suppose daylight saving time begins at 02:00 on March 30. Rounding a
* date that crosses this time would produce the following values:
@@ -760,7 +760,7 @@ public class DateUtils {
* 28 Mar 2002 14:00:00.000. If this was passed with MONTH, it
* would return 1 April 2002 0:00:00.000.</p>
*
- * <p>For a date in a timezone that handles the change to daylight
+ * <p>For a date in a time zone that handles the change to daylight
* saving time, rounding to Calendar.HOUR_OF_DAY will behave as follows.
* Suppose daylight saving time begins at 02:00 on March 30. Rounding a
* date that crosses this time would produce the following values:
diff --git a/src/main/java/org/apache/commons/lang3/time/DurationFormatUtils.java b/src/main/java/org/apache/commons/lang3/time/DurationFormatUtils.java
index 8b46e85..c2b55c2 100644
--- a/src/main/java/org/apache/commons/lang3/time/DurationFormatUtils.java
+++ b/src/main/java/org/apache/commons/lang3/time/DurationFormatUtils.java
@@ -254,7 +254,7 @@ public class DurationFormatUtils {
/**
* <p>Formats the time gap as a string, using the specified format.
* Padding the left hand side of numbers with zeroes is optional and
- * the timezone may be specified. </p>
+ * the time zone may be specified. </p>
*
* <p>When calculating the difference between months/days, it chooses to
* calculate months first. So when working out the number of months and
@@ -288,7 +288,7 @@ public class DurationFormatUtils {
final Token[] tokens = lexx(format);
- // timezones get funky around 0, so normalizing everything to GMT
+ // time zones get funky around 0, so normalizing everything to GMT
// stops the hours being off
final Calendar start = Calendar.getInstance(timezone);
start.setTime(new Date(startMillis));
diff --git a/src/main/java/org/apache/commons/lang3/time/FastDateParser.java b/src/main/java/org/apache/commons/lang3/time/FastDateParser.java
index 79686d6..e53a246 100644
--- a/src/main/java/org/apache/commons/lang3/time/FastDateParser.java
+++ b/src/main/java/org/apache/commons/lang3/time/FastDateParser.java
@@ -808,7 +808,7 @@ public class FastDateParser implements DateParser, Serializable {
};
/**
- * A strategy that handles a timezone field in the parsing pattern
+ * A strategy that handles a time zone field in the parsing pattern
*/
static class TimeZoneStrategy extends PatternStrategy {
private static final String RFC_822_TIME_ZONE = "[+-]\\d{4}";
diff --git a/src/main/java/org/apache/commons/lang3/time/FastDatePrinter.java b/src/main/java/org/apache/commons/lang3/time/FastDatePrinter.java
index 5217d93..3402409 100644
--- a/src/main/java/org/apache/commons/lang3/time/FastDatePrinter.java
+++ b/src/main/java/org/apache/commons/lang3/time/FastDatePrinter.java
@@ -1528,8 +1528,8 @@ public class FastDatePrinter implements DatePrinter, Serializable {
*
* @param timeZone the time zone
* @param daylight adjust the style for daylight saving time if {@code true}
- * @param style the timezone style
- * @param locale the timezone locale
+ * @param style the time zone style
+ * @param locale the time zone locale
*/
TimeZoneDisplayKey(final TimeZone timeZone,
final boolean daylight, final int style, final Locale locale) {
diff --git a/src/main/java/org/apache/commons/lang3/time/FastTimeZone.java b/src/main/java/org/apache/commons/lang3/time/FastTimeZone.java
index 3902b78..d111bed 100644
--- a/src/main/java/org/apache/commons/lang3/time/FastTimeZone.java
+++ b/src/main/java/org/apache/commons/lang3/time/FastTimeZone.java
@@ -70,7 +70,7 @@ public class FastTimeZone {
* i.e. <em>[GMT] (+|-) Hours [[:] Minutes]</em>
*
* @param id A GMT custom id (or Olson id
- * @return A timezone
+ * @return A time zone
*/
public static TimeZone getTimeZone(final String id) {
final TimeZone tz = getGmtTimeZone(id);
diff --git a/src/main/java/org/apache/commons/lang3/time/FormatCache.java b/src/main/java/org/apache/commons/lang3/time/FormatCache.java
index 7ffd83a..e1e3a01 100644
--- a/src/main/java/org/apache/commons/lang3/time/FormatCache.java
+++ b/src/main/java/org/apache/commons/lang3/time/FormatCache.java
@@ -48,7 +48,7 @@ abstract class FormatCache<F extends Format> {
/**
* <p>Gets a formatter instance using the default pattern in the
- * default timezone and locale.</p>
+ * default time zone and locale.</p>
*
* @return a date/time formatter
*/
diff --git a/src/main/java/org/apache/commons/lang3/time/GmtTimeZone.java b/src/main/java/org/apache/commons/lang3/time/GmtTimeZone.java
index 21753f4..f9ba1cb 100644
--- a/src/main/java/org/apache/commons/lang3/time/GmtTimeZone.java
+++ b/src/main/java/org/apache/commons/lang3/time/GmtTimeZone.java
@@ -20,7 +20,7 @@ import java.util.Date;
import java.util.TimeZone;
/**
- * Custom timezone that contains offset from GMT.
+ * Custom time zone that contains offset from GMT.
*
* @since 3.7
*/