Re: Support for static analysis annotations

2025-01-03 Thread Uwe Schindler
Hi, we have not yet discussed about that. At moment Lucene uses one custom annotation "@SuppressForbidden") which is detected by the forbiddenapis plugin based on pure class name (not package). Forbiddenapis (https://github.com/policeman-tools/forbidden-apis) is a static analysis tool used ex

Support for static analysis annotations

2024-12-05 Thread Evan Darke
I'm wondering if the Lucene community would be supportive of adopting common annotations, such a @Nullable, to enable better static analysis for downstream projects and within Lucene as well. Lucene makes extensive use of nulls for performance reasons, but using this code can be prone to user error