diff --git a/java/ql/lib/semmle/code/java/frameworks/spring/SpringController.qll b/java/ql/lib/semmle/code/java/frameworks/spring/SpringController.qll index a222be20c20a..cb7bd0e3dac4 100644 --- a/java/ql/lib/semmle/code/java/frameworks/spring/SpringController.qll +++ b/java/ql/lib/semmle/code/java/frameworks/spring/SpringController.qll @@ -156,6 +156,10 @@ class SpringRequestMappingMethod extends SpringControllerMethod { /** Gets the "value" @RequestMapping annotation value, if present. */ string getValue() { result = requestMappingAnnotation.getStringValue("value") } + + + /** Gets the "value" @RequestMapping annotation array string value, if present. */ + string getArrayValue() { result = requestMappingAnnotation.getAStringArrayValue("value") } /** Gets the "method" @RequestMapping annotation value, if present. */ string getMethodValue() { result = requestMappingAnnotation.getAnEnumConstantArrayValue("method").getName()