Is it possible add when field for @Nullable annotation ?
IDE has already helped me if I miss null checks, but It would be even better If I understood when that null case happened.
That way, I can understand when those fields, methods can be null and it will be more informative 🙂
Possible Usage:
public class Car {
@Nullable(when = "Car is in maintenance'")
private Engine engine;
}
When the pop-up appears if I miss null check, it can also state when it could be null 🙂
Hello,
Is it possible add
when
field for @Nullable annotation ?IDE has already helped me if I miss null checks, but It would be even better If I understood when that
null
case happened. That way, I can understand when those fields, methods can be null and it will be more informative 🙂Possible Usage:
When the pop-up appears if I miss null check, it can also state when it could be null 🙂