mirror of
https://github.com/github/codeql.git
synced 2025-12-22 03:36:30 +01:00
Java: Address review comments.
This commit is contained in:
@@ -278,10 +278,21 @@ private class FileInput extends LocalUserInput {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* DEPRECATED: Use the threat models feature.
|
||||||
|
* That is, use `ThreatModelFlowSource` as the class of nodes for sources
|
||||||
|
* and set up the threat model configuration to filter source nodes.
|
||||||
|
* Alternatively, use `getThreatModel` to filter nodes to create the
|
||||||
|
* class of nodes you need.
|
||||||
|
*
|
||||||
* A node with input from a database.
|
* A node with input from a database.
|
||||||
*/
|
*/
|
||||||
private class DatabaseInput extends LocalUserInput {
|
deprecated class DatabaseInput = DbInput;
|
||||||
DatabaseInput() { this.asExpr().(MethodAccess).getMethod() instanceof ResultSetGetStringMethod }
|
|
||||||
|
/**
|
||||||
|
* A node with input from a database.
|
||||||
|
*/
|
||||||
|
private class DbInput extends LocalUserInput {
|
||||||
|
DbInput() { this.asExpr().(MethodAccess).getMethod() instanceof ResultSetGetStringMethod }
|
||||||
|
|
||||||
override string getThreatModel() { result = "database" }
|
override string getThreatModel() { result = "database" }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user