How do I use Checker Framework annotations in Findbugs?
I’m migrating my codebase from 18.0 to Guava 26.0-jre. Static code checking is handled by Findbugs (3.0.0). It turns out that Guava migrated from JSR305 to Checker Framework .
Therefore, the existing code is as follows:
Ends with an error:
[INFO] Null passed for non-null parameter of com.google.common.collect.Iterables.getFirst(Iterable, Object)
My question is: how do I force Findbugs to understand Checker Framework comments? Is there any way to do this smoothly? I googled some Findbugs plugins but found nothing.