Java: Address review comments.

This commit is contained in:
Michael Nebel
2023-10-03 10:36:45 +02:00
parent 5b949b19f7
commit fcbd301de8

View File

@@ -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" }
} }