Marking optional member variable as NonNull

Viewed 1121

One of the String member variables of my class is Optional. Does it makes sense to mark it with Lombok annotation @NonNull ?

I would like to ask the same question in case that member variable is Map instead of String. Will the answer change ?

2 Answers
Related