0

So im running my program and I need to setup @NotNull from import javaz.validation.constraints.NotBlank; All there is

 @NonNull
    private final String firstName;

and import org.springframework.lang.NonNull;

How do I install @NotNull or is @NonNull the same thing?

Richard Brescher
  • 403
  • 2
  • 8
  • 15

1 Answers1

0

This should answer your question.

Short answer: there is a subtle difference, but it all depends on what you want, so you either need to read the post I've linked above or tell us more information.

Hakej
  • 414
  • 4
  • 8