File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
java/ql/lib/semmle/code/java/frameworks/spring Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -131,15 +131,15 @@ class SpringRequestMappingMethod extends SpringControllerMethod {
131
131
/** Gets a request mapping parameter. */
132
132
SpringRequestMappingParameter getARequestParameter ( ) { result = getAParameter ( ) }
133
133
134
- /** Gets the "produces" @RequestMapping annotation value, if present. */
134
+ /** Gets the "produces" @RequestMapping annotation value, if present. If an array is specified, gets the array. */
135
135
Expr getProducesExpr ( ) {
136
136
result = requestMappingAnnotation .getValue ( "produces" )
137
137
or
138
138
requestMappingAnnotation .getValue ( "produces" ) .( ArrayInit ) .getSize ( ) = 0 and
139
139
result = getProducesExpr ( this .getDeclaringType ( ) )
140
140
}
141
141
142
- /** Gets the "produces" @RequestMapping annotation value, if present . */
142
+ /** Gets a "produces" @RequestMapping annotation value. If an array is specified, gets a member of the array . */
143
143
Expr getAProducesExpr ( ) {
144
144
result = this .getProducesExpr ( ) and not result instanceof ArrayInit
145
145
or
You can’t perform that action at this time.
0 commit comments