Skip to content

Commit

Permalink
Fixes randomDateTimeZone method (#35145)
Browse files Browse the repository at this point in the history
The randomDateTimeZone method shouldn't return deprecated timezones
this causes some tests to fail with deprecation warning.
  • Loading branch information
imotov committed Nov 1, 2018
1 parent fc918aa commit 69449a0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ public void append(LogEvent event) {

// filter out joda timezones that are deprecated for the java time migration
List<String> jodaTZIds = DateTimeZone.getAvailableIDs().stream()
.filter(DateUtils.DEPRECATED_SHORT_TZ_IDS::contains).sorted().collect(Collectors.toList());
.filter(s -> DateUtils.DEPRECATED_SHORT_TZ_IDS.contains(s) == false).sorted().collect(Collectors.toList());
JODA_TIMEZONE_IDS = Collections.unmodifiableList(jodaTZIds);

List<String> javaTZIds = Arrays.asList(TimeZone.getAvailableIDs());
Expand Down

0 comments on commit 69449a0

Please sign in to comment.