mirror of
https://github.com/github/codeql.git
synced 2026-03-01 13:23:49 +01:00
Java: SpringController - handle non-string literal produces values.
This commit is contained in:
@@ -124,7 +124,7 @@ class SpringRequestMappingMethod extends SpringControllerMethod {
|
||||
|
||||
/** Gets the "produces" @RequestMapping annotation value, if present. */
|
||||
string getProduces() {
|
||||
result = requestMappingAnnotation.getValue("produces").(StringLiteral).getValue()
|
||||
result = requestMappingAnnotation.getValue("produces").(CompileTimeConstantExpr).getStringValue()
|
||||
}
|
||||
|
||||
/** Holds if this is considered an @ResponseBody method. */
|
||||
|
||||
Reference in New Issue
Block a user