mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-20 00:04:27 +01:00
isolate the analyze method to try and resolve multiple threads hitting the Lucene query parsers at the same time per issue #388
This commit is contained in:
@@ -481,7 +481,7 @@ public class CPEAnalyzer implements Analyzer {
|
|||||||
* @throws AnalysisException is thrown if there is an issue analyzing the dependency.
|
* @throws AnalysisException is thrown if there is an issue analyzing the dependency.
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void analyze(Dependency dependency, Engine engine) throws AnalysisException {
|
public synchronized void analyze(Dependency dependency, Engine engine) throws AnalysisException {
|
||||||
try {
|
try {
|
||||||
determineCPE(dependency);
|
determineCPE(dependency);
|
||||||
} catch (CorruptIndexException ex) {
|
} catch (CorruptIndexException ex) {
|
||||||
|
|||||||
Reference in New Issue
Block a user