Consider using LinkageError
instead of AssertionError
when rethrowing
reflective exceptions as unchecked exceptions, since it conveys more information
when reflection fails due to an incompatible change in the classpath.
Suppress false positives by adding the suppression annotation @SuppressWarnings("RethrowReflectiveOperationExceptionAsLinkageError")
to the enclosing element.