Account for review comments
This commit is contained in:
parent
1922f549bb
commit
eb1c67c1cb
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue