title: @NotNull annotation not working as expected Java Jersey
body: <p>I have an endpoint implementation, that I am passing an object to in the parameter list. I am trying to verify that this object is not null, using the @NotNull annotation. </p>
  
  <pre><code>@POST 
  @Path("path") 
  public Response endpointMethod(@NotNull @ApiParam(value = "abc", required = true) Object object) { 
          return Response.status(Status.OK).build(); 
  } 
  </code></pre>
  
  <p>If the object is verified to be not null, then the endpoint will just return a 200 OK response. 
  However, when I fire a request to this endpoint, with the specified path, and nothing in the body, there are no errors that are thrown. Instead, I am able to retrieve the 200 response (even when I check if the object is null before return the response, it shows that that is the case). </p>
  
  <p>Can someone guide me on how to verify whether the object is null in the correct way?</p>