Skip to content

Commit 476ada1

Browse files
committed
Improve QLDoc for SpringRequestMappingMethod.getAValue
1 parent 45475c5 commit 476ada1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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. */

0 commit comments

Comments
 (0)