Skip to content

Commit 1fd6820

Browse files
committed
Java: Fix deprecation warnings.
1 parent 0740889 commit 1fd6820

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

java/src/library_sources/ExternalAPIs.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,10 @@ deprecated class UntrustedDataToExternalApiConfig extends TaintTracking::Configu
111111
}
112112

113113
/**
114-
* Taint tracking configuration for flow from `ThreatModelFlowSource`s to `ExternalApiDataNode`s.
114+
* Taint tracking configuration for flow from `ActiveThreatModelSource`s to `ExternalApiDataNode`s.
115115
*/
116116
module UntrustedDataToExternalApiConfig implements DataFlow::ConfigSig {
117-
predicate isSource(DataFlow::Node source) { source instanceof ThreatModelFlowSource }
117+
predicate isSource(DataFlow::Node source) { source instanceof ActiveThreatModelSource }
118118

119119
predicate isSink(DataFlow::Node sink) { sink instanceof ExternalApiDataNode }
120120
}
@@ -247,7 +247,7 @@ private string typeAsModel(Callable c) {
247247
exists(RefType type | type = c.getDeclaringType() |
248248
result =
249249
type.getCompilationUnit().getPackage().getName() + ";" +
250-
type.getErasure().(J::RefType).nestedName()
250+
type.getErasure().(J::RefType).getNestedName()
251251
)
252252
}
253253

0 commit comments

Comments
 (0)