SuppressForbidden (Lucene 10.5.1 core API)
Description: declaration: package: org.apache.lucene.util, annotation type: SuppressForbidden

Package org.apache.lucene.util

# Annotation Interface SuppressForbidden

@Retention(CLASS) @Target({CONSTRUCTOR,FIELD,METHOD,TYPE}) public @interface SuppressForbidden
Annotation to suppress forbidden-apis errors inside a whole class, a method, or a field.

NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.

- ## Required Element Summary

  Required Elements
  Modifier and Type
  Required Element
  Description
  `String`
  `reason`
  A reason for suppressing should always be given.

- ## Element Details

  - ### reason

    String reason
    A reason for suppressing should always be given.