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 {
156
156
/** DEPRECATED: Use `getAValue()` instead. */
157
157
deprecated string getValue ( ) { result = requestMappingAnnotation .getStringValue ( "value" ) }
158
158
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
+ */
160
165
string getAValue ( ) { result = requestMappingAnnotation .getAStringArrayValue ( "value" ) }
161
166
162
167
/** Gets the "method" @RequestMapping annotation value, if present. */
You can’t perform that action at this time.
0 commit comments