Skip to content

Commit db45b80

Browse files
committed
Suppress warnings for deprecated AnnotationFilter.NONE enum constant
See gh-24932
1 parent f6df21e commit db45b80

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

spring-core/src/test/java/org/springframework/core/annotation/AnnotationFilterTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2019 the original author or authors.
2+
* Copyright 2002-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -99,6 +99,7 @@ void javaWhenOtherAnnotationReturnsFalse() {
9999
}
100100

101101
@Test
102+
@SuppressWarnings("deprecation")
102103
void noneReturnsFalse() {
103104
assertThat(AnnotationFilter.NONE.matches(Retention.class)).isFalse();
104105
assertThat(AnnotationFilter.NONE.matches(Nullable.class)).isFalse();

spring-core/src/test/java/org/springframework/core/annotation/MergedAnnotationsTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1253,6 +1253,7 @@ void getRepeatableDeclaredOnMethod() throws Exception {
12531253
}
12541254

12551255
@Test
1256+
@SuppressWarnings("deprecation")
12561257
void getRepeatableDeclaredOnClassWithAttributeAliases() {
12571258
assertThat(MergedAnnotations.from(HierarchyClass.class).stream(
12581259
TestConfiguration.class)).isEmpty();

0 commit comments

Comments
 (0)