mirror of
https://github.com/github/codeql.git
synced 2026-04-27 09:45:15 +02:00
Java: Autoformat most queries.
This commit is contained in:
@@ -3,7 +3,9 @@ import semmle.code.java.dataflow.DataFlow
|
||||
|
||||
class Conf extends DataFlow::Configuration {
|
||||
Conf() { this = "FieldFlowConf" }
|
||||
|
||||
override predicate isSource(DataFlow::Node src) { src.asExpr() instanceof ClassInstanceExpr }
|
||||
|
||||
override predicate isSink(DataFlow::Node sink) {
|
||||
exists(MethodAccess ma |
|
||||
ma.getMethod().hasName("sink") and
|
||||
|
||||
@@ -4,17 +4,16 @@ import DataFlow
|
||||
|
||||
class ThisFlowConfig extends Configuration {
|
||||
ThisFlowConfig() { this = "ThisFlowConfig" }
|
||||
|
||||
override predicate isSource(Node src) {
|
||||
exists(PostUpdateNode cie |
|
||||
cie.asExpr() instanceof ClassInstanceExpr
|
||||
|
|
||||
exists(PostUpdateNode cie | cie.asExpr() instanceof ClassInstanceExpr |
|
||||
cie.getPreUpdateNode() = src or cie = src
|
||||
)
|
||||
}
|
||||
|
||||
override predicate isSink(Node sink) { any() }
|
||||
}
|
||||
|
||||
from Node n, ThisFlowConfig conf
|
||||
where
|
||||
conf.hasFlow(_, n)
|
||||
where conf.hasFlow(_, n)
|
||||
select n
|
||||
|
||||
Reference in New Issue
Block a user