Skip to content

Commit

Permalink
Java: Fix deprecation warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelnebel committed Nov 8, 2024
1 parent 0740889 commit 1fd6820
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions java/src/library_sources/ExternalAPIs.qll
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,10 @@ deprecated class UntrustedDataToExternalApiConfig extends TaintTracking::Configu
}

/**
* Taint tracking configuration for flow from `ThreatModelFlowSource`s to `ExternalApiDataNode`s.
* Taint tracking configuration for flow from `ActiveThreatModelSource`s to `ExternalApiDataNode`s.
*/
module UntrustedDataToExternalApiConfig implements DataFlow::ConfigSig {
predicate isSource(DataFlow::Node source) { source instanceof ThreatModelFlowSource }
predicate isSource(DataFlow::Node source) { source instanceof ActiveThreatModelSource }

predicate isSink(DataFlow::Node sink) { sink instanceof ExternalApiDataNode }
}
Expand Down Expand Up @@ -247,7 +247,7 @@ private string typeAsModel(Callable c) {
exists(RefType type | type = c.getDeclaringType() |
result =
type.getCompilationUnit().getPackage().getName() + ";" +
type.getErasure().(J::RefType).nestedName()
type.getErasure().(J::RefType).getNestedName()
)
}

Expand Down

0 comments on commit 1fd6820

Please sign in to comment.