Skip to content

Commit 0355b78

Browse files
Jami CogswellJami Cogswell
authored andcommitted
Java: add deprecation deletion comment
1 parent b3d218a commit 0355b78

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,8 @@ module ModelValidation {
247247
)
248248
}
249249

250+
/**
251+
*/
250252
private string getInvalidModelOutput() {
251253
exists(string pred, AccessPath output, AccessPathToken part |
252254
sourceModel(_, _, _, _, _, _, output, _, _) and pred = "source"
@@ -328,6 +330,7 @@ module ModelValidation {
328330
not kind.matches("regex-use%") and
329331
not kind.matches("qltest%") and
330332
msg = "Invalid kind \"" + kind + "\" in sink model." and
333+
// The deprecation part of this message can be deleted after June 1st, 2024.
331334
if kind instanceof DeprecatedSinkKind
332335
then result = msg + " " + kind.(DeprecatedSinkKind).deprecationMessage()
333336
else result = msg

0 commit comments

Comments
 (0)