We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0db7cea commit 8bd5f74Copy full SHA for 8bd5f74
java/ql/src/semmle/code/java/frameworks/spring/SpringController.qll
@@ -124,7 +124,7 @@ class SpringRequestMappingMethod extends SpringControllerMethod {
124
125
/** Gets the "produces" @RequestMapping annotation value, if present. */
126
string getProduces() {
127
- result = requestMappingAnnotation.getValue("produces").(StringLiteral).getValue()
+ result = requestMappingAnnotation.getValue("produces").(CompileTimeConstantExpr).getStringValue()
128
}
129
130
/** Holds if this is considered an @ResponseBody method. */
0 commit comments