mirror of
https://github.com/github/codeql.git
synced 2026-05-03 12:45:27 +02:00
Autoformat
This commit is contained in:
@@ -2,7 +2,6 @@ import java
|
||||
import semmle.code.java.dataflow.DataFlow
|
||||
|
||||
class Config extends DataFlow::Configuration {
|
||||
|
||||
Config() { this = "Config" }
|
||||
|
||||
override predicate isSource(DataFlow::Node n) {
|
||||
@@ -12,10 +11,11 @@ class Config extends DataFlow::Configuration {
|
||||
override predicate isSink(DataFlow::Node n) {
|
||||
n.asExpr().(Argument).getCall().getCallee().getName() = "sink"
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
query predicate isFinalField(Field f) { exists(FieldDeclaration f2 | f = f2.getAField()) and f.isFinal() }
|
||||
query predicate isFinalField(Field f) {
|
||||
exists(FieldDeclaration f2 | f = f2.getAField()) and f.isFinal()
|
||||
}
|
||||
|
||||
from DataFlow::Node source, DataFlow::Node sink
|
||||
where any(Config c).hasFlow(source, sink)
|
||||
|
||||
Reference in New Issue
Block a user