From 33a1f82a139a9072892fab77039e9234d205b5af Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Tue, 10 Oct 2017 12:01:31 -0600 Subject: [PATCH] [LANG-1355] TimeZone.getTimeZone() in FastDateParser causes resource contention. Javadoc: Use the active voice. --- .../java/org/apache/commons/lang3/time/FastTimeZone.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 3962479f4..f43b268de 100644 --- a/src/main/java/org/apache/commons/lang3/time/FastTimeZone.java +++ b/src/main/java/org/apache/commons/lang3/time/FastTimeZone.java @@ -34,7 +34,7 @@ public class FastTimeZone { } /** - * Get the GMT TimeZone. + * Gets the GMT TimeZone. * @return A TimeZone with a raw offset of zero. */ public static TimeZone getGmtTimeZone() { @@ -42,7 +42,7 @@ public class FastTimeZone { } /** - * Get a TimeZone, looking first for GMT custom ids, then falling back to Olson ids. + * Gets a TimeZone, looking first for GMT custom ids, then falling back to Olson ids. * A GMT custom id can be 'Z', or 'UTC', or has an optional prefix of GMT, * followed by sign, hours digit(s), optional colon(':'), and optional minutes digits. * i.e. [GMT] (+|-) Hours [[:] Minutes] @@ -61,7 +61,7 @@ public class FastTimeZone { private static final Pattern GMT_PATTERN = Pattern.compile("^(?:(?i)GMT)?([+-])?(\\d\\d?)?(:?(\\d\\d?))?$"); /** - * Get a TimeZone with GMT offsets. A GMT offset must be either 'Z', or 'UTC', or match + * Gets a TimeZone with GMT offsets. A GMT offset must be either 'Z', or 'UTC', or match * (GMT)? hh?(:?mm?)?, where h and m are digits representing hours and minutes. * * @param pattern The GMT offset