Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 54d7cac

Browse files
authored
Merge pull request #4718 from aschackmull/java/cleanup-deprecated
Java: Remove some deprecated classes.
2 parents a5393b4 + 88e0759 commit 54d7cac

3 files changed

Lines changed: 1 addition & 24 deletions

File tree

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,11 +202,9 @@ private class BeanValidationSource extends RemoteFlowSource {
202202
abstract class UserInput extends DataFlow::Node { }
203203

204204
/**
205-
* DEPRECATED: Use `RemoteFlowSource` instead.
206-
*
207205
* Input that may be controlled by a remote user.
208206
*/
209-
deprecated class RemoteUserInput extends UserInput {
207+
private class RemoteUserInput extends UserInput {
210208
RemoteUserInput() { this instanceof RemoteFlowSource }
211209
}
212210

java/ql/src/semmle/code/java/dataflow/TaintTracking.qll

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,4 @@ import semmle.code.java.dataflow.internal.TaintTrackingUtil::StringBuilderVarMod
99

1010
module TaintTracking {
1111
import semmle.code.java.dataflow.internal.tainttracking1.TaintTrackingImpl
12-
private import semmle.code.java.dataflow.TaintTracking2
13-
14-
/**
15-
* DEPRECATED: Use TaintTracking2::Configuration instead.
16-
*/
17-
deprecated class Configuration2 = TaintTracking2::Configuration;
1812
}

java/ql/src/semmle/code/java/security/Validation.qll

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -63,18 +63,3 @@ private predicate validatedAccess(VarAccess va) {
6363
class ValidatedVariableAccess extends VarAccess {
6464
ValidatedVariableAccess() { validatedAccess(this) }
6565
}
66-
67-
/**
68-
* DEPRECATED: Use ValidatedVariableAccess instead.
69-
*
70-
* A variable that is ever passed to a string verification method.
71-
*/
72-
deprecated class ValidatedVariable extends Variable {
73-
ValidatedVariable() {
74-
exists(MethodAccess call, int arg, VarAccess access |
75-
validationMethod(call.getMethod(), arg) and
76-
call.getArgument(arg) = access and
77-
access.getVariable() = this
78-
)
79-
}
80-
}

0 commit comments

Comments
 (0)