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 {
131131 /** Gets a request mapping parameter. */
132132 SpringRequestMappingParameter getARequestParameter ( ) { result = getAParameter ( ) }
133133
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. */
135135 Expr getProducesExpr ( ) {
136136 result = requestMappingAnnotation .getValue ( "produces" )
137137 or
138138 requestMappingAnnotation .getValue ( "produces" ) .( ArrayInit ) .getSize ( ) = 0 and
139139 result = getProducesExpr ( this .getDeclaringType ( ) )
140140 }
141141
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 . */
143143 Expr getAProducesExpr ( ) {
144144 result = this .getProducesExpr ( ) and not result instanceof ArrayInit
145145 or
You can’t perform that action at this time.
0 commit comments