Skip to content

Commit

Permalink
Suppress warnings for deprecated AnnotationFilter.NONE enum constant
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrannen committed Apr 26, 2020
1 parent f6df21e commit db45b80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -99,6 +99,7 @@ void javaWhenOtherAnnotationReturnsFalse() {
}

@Test
@SuppressWarnings("deprecation")
void noneReturnsFalse() {
assertThat(AnnotationFilter.NONE.matches(Retention.class)).isFalse();
assertThat(AnnotationFilter.NONE.matches(Nullable.class)).isFalse();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1253,6 +1253,7 @@ void getRepeatableDeclaredOnMethod() throws Exception {
}

@Test
@SuppressWarnings("deprecation")
void getRepeatableDeclaredOnClassWithAttributeAliases() {
assertThat(MergedAnnotations.from(HierarchyClass.class).stream(
TestConfiguration.class)).isEmpty();
Expand Down

0 comments on commit db45b80

Please sign in to comment.