in geronimo-openapi-impl/src/main/java/org/apache/geronimo/microprofile/openapi/impl/processor/AnnotationProcessor.java [461:474]
private boolean findAnnotatedParameterByName(final org.eclipse.microprofile.openapi.models.parameters.Parameter it,
final AnnotatedTypeElement mp) {
final String expected = ofNullable(it.getName()).orElse("");
if (mp.isAnnotationPresent(PathParam.class)) {
return expected.equals(mp.getAnnotation(PathParam.class).value());
} else if (mp.isAnnotationPresent(HeaderParam.class)) {
return expected.equals(mp.getAnnotation(HeaderParam.class).value());
} else if (mp.isAnnotationPresent(CookieParam.class)) {
return expected.equals(mp.getAnnotation(CookieParam.class).value());
} else if (mp.isAnnotationPresent(QueryParam.class)) {
return expected.equals(mp.getAnnotation(QueryParam.class).value());
}
return false;
}