Skip to content

Commit f575d2f

Browse files
get array string url
1 parent 5db797e commit f575d2f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

java/ql/lib/semmle/code/java/frameworks/spring/SpringController.qll

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,10 @@ class SpringRequestMappingMethod extends SpringControllerMethod {
156156
/** Gets the "value" @RequestMapping annotation value, if present. */
157157
string getValue() { result = requestMappingAnnotation.getStringValue("value") }
158158

159+
160+
161+
/** Gets the "value" @RequestMapping annotation array string value, if present. */
162+
string getArrayValue() { result = requestMappingAnnotation.getAStringArrayValue("value") }
159163
/** Gets the "method" @RequestMapping annotation value, if present. */
160164
string getMethodValue() {
161165
result = requestMappingAnnotation.getAnEnumConstantArrayValue("method").getName()

0 commit comments

Comments
 (0)