I saw some method in java declared as:

void foo(@Nullable Object obj)
{ ... }

What’s the meaning of @Nullable here? Does it mean the input could be null?

Without the annotation, the input can still be null, so I guess that’s not just it?

4 Answers
4

Leave a Reply

Your email address will not be published. Required fields are marked *