-
Improvement
-
Resolution: Done
-
High
-
None
-
None
We are using Eclipse annotations and Eclipse ends up being very noisy if you enable nullness analysis. One part of it revolves around our use of .class references in APIs – while the APIs do not specify nullness, Eclipse treats the class reference in
InstanceIdentifier.create(Foo.class)
as Class<@NonNull Foo>, and, very unhelpfully, generates a warning when it meets InstanceIdentifier's lack of annotations. This is perhaps an issue with Eclipse, but at the end of the day we need to support everyone.
Improve the situation by taking into account Eclipse's short falls and annotate InstanceIdentifier to keep it happy.