My method definition is:
@GET
@Path("/{featureGroup}")
public void getRecord(
@PathParam("featureGroup") String featureGroup,
@Schema Jedis jedis,
@Context HttpServletRequest request,
@Context HttpServletResponse response)
throws IOException, JedisException, JSONException {}
I want to annotate a required/notnull queryParam RecordIdentifierValueAsString as somewhere for this call. But when I do that, it says that local variable can not be annotated -
@NotNull @QueryParam("RecordIdentifierValueAsString") String recordIdentifier;
How can I annotate a query param if its not used as an argument to the method?