We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e92b9cb commit 406466dCopy full SHA for 406466d
java/ql/lib/semmle/code/java/frameworks/spring/SpringHttp.qll
@@ -145,8 +145,7 @@ private class SpringHttpFlowStep extends SummaryModelCsv {
145
}
146
147
private predicate specifiesContentType(SpringRequestMappingMethod method) {
148
- method.getProducesExpr().(ArrayInit).getSize() != 0 or
149
- not method.getProducesExpr() instanceof ArrayInit
+ exists(method.getAProducesExpr())
150
151
152
private class SpringXssSink extends XSS::XssSink {
0 commit comments