From the Javadoc of StandardAnnotationMetadata's constructor, the reason StandardAnnotationMetadata is marked as @Deprecated is since 5.2 in favor of the factory method {@link AnnotationMetadata # introspect (Class)}. However,AnnotationMetadata.introspect is delegated toStandardAnnotationMetadata.from, consider suppressing deprecation warnings of AnnotationMetadata.from.

Comment From: sbrannen

Which compiler, build tool, or IDE is generating deprecation warnings for that?

Comment From: chenqimiao

Which compiler, build tool, or IDE is generating deprecation warnings for that?

IntelliJ IDEA 2018.2.4 (Ultimate Edition)

Comment From: sbrannen

Thanks for the feedback.

Since the status quo does not result in a deprecation warning in the build, and since the method in question is an internal method, I am closing this PR in favor of leaving it as is.