Skip to content

Commit e92b9cb

Browse files
authored
Improve getAProducesExpr documentation
1 parent 9d31641 commit e92b9cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)