mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
Java/C#/GO: Use instanceof in more places
This commit is contained in:
@@ -2,11 +2,8 @@ import java
|
||||
import semmle.code.java.dataflow.FlowSources
|
||||
import TestUtilities.InlineExpectationsTest
|
||||
|
||||
class LocalSource extends DataFlow::Node {
|
||||
LocalSource() {
|
||||
this instanceof UserInput and
|
||||
not this instanceof RemoteFlowSource
|
||||
}
|
||||
class LocalSource extends DataFlow::Node instanceof UserInput {
|
||||
LocalSource() { not this instanceof RemoteFlowSource }
|
||||
}
|
||||
|
||||
predicate isTestSink(DataFlow::Node n) {
|
||||
|
||||
Reference in New Issue
Block a user