Not null arguments in Java public methods | Gualtiero Testa
Important: the @Nonnull annotation is simply an annotation, a kind of hint for the tools. It is not a run-time check and it does not enforce or guarantee that nobody can call the method with a null argument. So our "if arg == null" check should stay there.
Read full article from Not null arguments in Java public methods | Gualtiero Testa
No comments:
Post a Comment