[LANG-1355] TimeZone.getTimeZone() in FastDateParser causes resource

contention</action>. Javadoc: Use the active voice.
This commit is contained in:
Gary Gregory 2017-10-10 12:01:31 -06:00
parent 1dbfaeecbd
commit 33a1f82a13
1 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@ public class FastTimeZone {
} }
/** /**
* Get the GMT TimeZone. * Gets the GMT TimeZone.
* @return A TimeZone with a raw offset of zero. * @return A TimeZone with a raw offset of zero.
*/ */
public static TimeZone getGmtTimeZone() { 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, * 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. * followed by sign, hours digit(s), optional colon(':'), and optional minutes digits.
* i.e. <em>[GMT] (+|-) Hours [[:] Minutes]</em> * i.e. <em>[GMT] (+|-) Hours [[:] Minutes]</em>
@ -61,7 +61,7 @@ public class FastTimeZone {
private static final Pattern GMT_PATTERN = Pattern.compile("^(?:(?i)GMT)?([+-])?(\\d\\d?)?(:?(\\d\\d?))?$"); 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
* <em>(GMT)? hh?(:?mm?)?</em>, where h and m are digits representing hours and minutes. * <em>(GMT)? hh?(:?mm?)?</em>, where h and m are digits representing hours and minutes.
* *
* @param pattern The GMT offset * @param pattern The GMT offset