Skip to content

Commit

Permalink
Suppress deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrannen committed Jan 27, 2025
1 parent b4ea6ec commit 7372246
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ public static <A extends Annotation> Optional<A> findAnnotation(AnnotatedElement
*/
@Deprecated
@API(status = DEPRECATED, since = "1.12")
@SuppressWarnings("deprecation")
public static <A extends Annotation> Optional<A> findAnnotation(Class<?> clazz, Class<A> annotationType,
SearchOption searchOption) {

Expand Down

2 comments on commit 7372246

@marcphilipp
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which warning is this suppressing? Is it for SearchOption? IntelliJ IDEA reports this suppression as redundant. Does Eclipse show a warning if this suppression is absent?

@sbrannen
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which warning is this suppressing? Is it for SearchOption?

Yes

Does Eclipse show a warning if this suppression is absent?

Yes

Please sign in to comment.