Skip to content

Commit b8cedfa

Browse files
Jami CogswellJami Cogswell
Jami Cogswell
authored and
Jami Cogswell
committed
Java: switch 'deprecated' to 'outdated'
1 parent d10857f commit b8cedfa

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,8 @@ module ModelValidation {
265265
)
266266
}
267267

268-
private class DeprecatedSinkKind extends string {
269-
DeprecatedSinkKind() {
268+
private class OutdatedSinkKind extends string {
269+
OutdatedSinkKind() {
270270
this =
271271
[
272272
"sql", "url-redirect", "xpath", "ssti", "logging", "groovy", "jexl", "mvel", "xslt",
@@ -303,9 +303,9 @@ module ModelValidation {
303303
this = ["open-url", "jdbc-url"] and result = "request-forgery"
304304
}
305305

306-
string deprecationMessage() {
306+
string outdatedMessage() {
307307
result =
308-
"The kind \"" + this + "\" is deprecated. Use \"" + this.replacementKind() + "\" instead."
308+
"The kind \"" + this + "\" is outdated. Use \"" + this.replacementKind() + "\" instead."
309309
}
310310
}
311311

@@ -328,9 +328,9 @@ module ModelValidation {
328328
not kind.matches("regex-use%") and
329329
not kind.matches("qltest%") and
330330
msg = "Invalid kind \"" + kind + "\" in sink model." and
331-
// The deprecation part of this message can be deleted after June 1st, 2024.
332-
if kind instanceof DeprecatedSinkKind
333-
then result = msg + " " + kind.(DeprecatedSinkKind).deprecationMessage()
331+
// The part of this message that refers to outdated sink kinds can be deleted after June 1st, 2024.
332+
if kind instanceof OutdatedSinkKind
333+
then result = msg + " " + kind.(OutdatedSinkKind).outdatedMessage()
334334
else result = msg
335335
)
336336
or

0 commit comments

Comments
 (0)