File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
java/ql/lib/semmle/code/java/frameworks/spring Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,12 @@ class SpringRequestMappingMethod extends SpringControllerMethod {
156156 /** DEPRECATED: Use `getAValue()` instead. */
157157 deprecated string getValue ( ) { result = requestMappingAnnotation .getStringValue ( "value" ) }
158158
159- /** Gets the "value" @RequestMapping annotation array string value, if present. */
159+ /**
160+ * Gets a "value" @RequestMapping annotation string value, if present.
161+ *
162+ * If the annotation element is defined with an array initializer, then the result will be one of the
163+ * elements of that array. Otherwise, the result will be the single expression used as value.
164+ */
160165 string getAValue ( ) { result = requestMappingAnnotation .getAStringArrayValue ( "value" ) }
161166
162167 /** Gets the "method" @RequestMapping annotation value, if present. */
You can’t perform that action at this time.
0 commit comments