mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-24 18:11:47 +01:00
coverity suggested change
This commit is contained in:
@@ -163,15 +163,16 @@ public class Engine implements FileFilter {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the dependencies identified. The returned list is a reference to the
|
* Get the dependencies identified. The returned list is a reference to the
|
||||||
* engine's synchronized list. You must synchronize on it, when you modify
|
* engine's synchronized list. <b>You must synchronize on the returned
|
||||||
* and iterate over it from multiple threads. E.g. this holds for analyzers
|
* list</b> when you modify and iterate over it from multiple threads. E.g.
|
||||||
* supporting parallel processing during their analysis phase.
|
* this holds for analyzers supporting parallel processing during their
|
||||||
|
* analysis phase.
|
||||||
*
|
*
|
||||||
* @return the dependencies identified
|
* @return the dependencies identified
|
||||||
* @see Collections#synchronizedList(List)
|
* @see Collections#synchronizedList(List)
|
||||||
* @see Analyzer#supportsParallelProcessing()
|
* @see Analyzer#supportsParallelProcessing()
|
||||||
*/
|
*/
|
||||||
public List<Dependency> getDependencies() {
|
public synchronized List<Dependency> getDependencies() {
|
||||||
return dependencies;
|
return dependencies;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user