I have a method like:
public String getParamValue(@NotNull String param) {
.......
.......
.......
}
Even after putting @NotNull
in-front of the param
, whenever i am calling getParamValue(null)
it is not throwing NPE
. It proceeds as normal, do i need to do something else or am i using it wrongly? Thanks.
I am using Java 7 and javax.validation.constraints.NotNull
if it helps in any ways.