Suppress warnings for deprecated AnnotationFilter.NONE enum constant

See gh-24932
This commit is contained in:
Sam Brannen 2020-04-26 13:58:31 +02:00
parent f6df21eaa9
commit db45b80b1f
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright 2002-2019 the original author or authors.
* Copyright 2002-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -99,6 +99,7 @@ class AnnotationFilterTests {
}
@Test
@SuppressWarnings("deprecation")
void noneReturnsFalse() {
assertThat(AnnotationFilter.NONE.matches(Retention.class)).isFalse();
assertThat(AnnotationFilter.NONE.matches(Nullable.class)).isFalse();

View File

@ -1253,6 +1253,7 @@ class MergedAnnotationsTests {
}
@Test
@SuppressWarnings("deprecation")
void getRepeatableDeclaredOnClassWithAttributeAliases() {
assertThat(MergedAnnotations.from(HierarchyClass.class).stream(
TestConfiguration.class)).isEmpty();