Fixes randomDateTimeZone method
The randomDateTimeZone method shouldn't return deprecated timezones
this causes some tests to fail with deprecation warning.
@@ -229,7 +229,7 @@ public abstract class ESTestCase extends LuceneTestCase {
// 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());
