Skip to content

Commit fcbd301

Browse files
committed
Java: Address review comments.
1 parent 5b949b1 commit fcbd301

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

java/ql/lib/semmle/code/java/dataflow/FlowSources.qll

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,11 +277,22 @@ private class FileInput extends LocalUserInput {
277277
override string getThreatModel() { result = "file" }
278278
}
279279

280+
/**
281+
* DEPRECATED: Use the threat models feature.
282+
* That is, use `ThreatModelFlowSource` as the class of nodes for sources
283+
* and set up the threat model configuration to filter source nodes.
284+
* Alternatively, use `getThreatModel` to filter nodes to create the
285+
* class of nodes you need.
286+
*
287+
* A node with input from a database.
288+
*/
289+
deprecated class DatabaseInput = DbInput;
290+
280291
/**
281292
* A node with input from a database.
282293
*/
283-
private class DatabaseInput extends LocalUserInput {
284-
DatabaseInput() { this.asExpr().(MethodAccess).getMethod() instanceof ResultSetGetStringMethod }
294+
private class DbInput extends LocalUserInput {
295+
DbInput() { this.asExpr().(MethodAccess).getMethod() instanceof ResultSetGetStringMethod }
285296

286297
override string getThreatModel() { result = "database" }
287298
}

0 commit comments

Comments
 (0)