Annotation Interface IgnoreProtectedAccess


@Documented @Target(METHOD) @Retention(CLASS) public @interface IgnoreProtectedAccess

Calls to protected methods between classes in different classloaders are treated at runtime as if they were in different packages. Validation tasks check the Firstspirit codebase for such calls but are not able to filter out all allowed usages. Those are:

  • Direct calls to the super class (super.)
  • Calls to the current instance (this.)

This annotation disables the check for the specified method call. If in doubt, create a similar class in a different package, thus simulating the behavior of the classloader.

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The called method names to ignore in the current method, e.g.
  • Element Details

    • value

      String[] value
      The called method names to ignore in the current method, e.g. AbstractStoreElement.hasAttribute.