Account for review comments

This commit is contained in:
jamesagnew 2020-10-16 14:59:55 -04:00 committed by James Agnew
parent 1922f549bb
commit eb1c67c1cb
5 changed files with 5 additions and 10 deletions

View File

@ -621,8 +621,7 @@ public abstract class BaseDateTimeType extends PrimitiveType<Date> {
}
private TimeZone getTimeZone(String offset) {
return timezoneCache.computeIfAbsent(offset, (offsetLocal) ->
TimeZone.getTimeZone("GMT" + offsetLocal));
return timezoneCache.computeIfAbsent(offset, TimeZone::getTimeZone);
}
}

View File

@ -754,8 +754,7 @@ public abstract class BaseDateTimeType extends PrimitiveType<Date> {
}
private TimeZone getTimeZone(String offset) {
return timezoneCache.computeIfAbsent(offset, (offsetLocal) ->
TimeZone.getTimeZone("GMT" + offsetLocal));
return timezoneCache.computeIfAbsent(offset, TimeZone::getTimeZone);
}
}

View File

@ -845,8 +845,7 @@ public abstract class BaseDateTimeType extends PrimitiveType<Date> {
}
private TimeZone getTimeZone(String offset) {
return timezoneCache.computeIfAbsent(offset, (offsetLocal) ->
TimeZone.getTimeZone("GMT" + offsetLocal));
return timezoneCache.computeIfAbsent(offset, TimeZone::getTimeZone);
}
}

View File

@ -948,8 +948,7 @@ public abstract class BaseDateTimeType extends PrimitiveType<Date> {
}
private TimeZone getTimeZone(String offset) {
return timezoneCache.computeIfAbsent(offset, (offsetLocal) ->
TimeZone.getTimeZone("GMT" + offsetLocal));
return timezoneCache.computeIfAbsent(offset, TimeZone::getTimeZone);
}
}

View File

@ -1015,8 +1015,7 @@ public abstract class BaseDateTimeType extends PrimitiveType<Date> {
}
private TimeZone getTimeZone(String offset) {
return timezoneCache.computeIfAbsent(offset, (offsetLocal) ->
TimeZone.getTimeZone("GMT" + offsetLocal));
return timezoneCache.computeIfAbsent(offset, TimeZone::getTimeZone);
}
}