Simplify specifiesContentType predicate

This commit is contained in:
Chris Smowton
2021-09-14 15:24:46 +01:00
parent e92b9cbe99
commit 406466de9a

View File

@@ -145,8 +145,7 @@ private class SpringHttpFlowStep extends SummaryModelCsv {
}
private predicate specifiesContentType(SpringRequestMappingMethod method) {
method.getProducesExpr().(ArrayInit).getSize() != 0 or
not method.getProducesExpr() instanceof ArrayInit
exists(method.getAProducesExpr())
}
private class SpringXssSink extends XSS::XssSink {