Annotation Type SuppressFBWarnings


  • @Retention(CLASS)
    public @interface SuppressFBWarnings
    GeoTools custom ersion of Spotbugs SuppressFBWarnings, added here to avoid dependencies on extra jars and for IDE friendlyness (IntelliJ does not seem to provide completion for optional dependencies, even if annotations not found at runtime apparently don't cause issues).

    Spotbugs checks annotations by name, anything ending with "SuppressFBWarnings" or "SuppressWarnings" will be checked for suppressions. We cannot use SuppressWarnings simply because it is not retained in bytecode, which is what SpotBugs processes.

    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      String justification
      Optional documentation of the reason why the warning is suppressed
      String[] value
      The set of FindBugs warnings that are to be suppressed in annotated element.
    • Element Detail

      • value

        String[] value
        The set of FindBugs warnings that are to be suppressed in annotated element. The value can be a bug category, kind or pattern.
        Default:
        {}
      • justification

        String justification
        Optional documentation of the reason why the warning is suppressed
        Default:
        ""