mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-01-15 08:13:43 +01:00
Please PMD
This commit is contained in:
@@ -90,7 +90,7 @@ public class CentralAnalyzer extends AbstractFileTypeAnalyzer {
|
||||
/**
|
||||
* The searcher itself.
|
||||
*/
|
||||
CentralSearch searcher;
|
||||
protected CentralSearch searcher;
|
||||
|
||||
/**
|
||||
* Field indicating if the analyzer is enabled.
|
||||
@@ -281,7 +281,7 @@ public class CentralAnalyzer extends AbstractFileTypeAnalyzer {
|
||||
* @throws FileNotFoundException if the specified artifact is not found
|
||||
* @throws IOException if connecting to MavenCentral finally failed
|
||||
*/
|
||||
List<MavenArtifact> fetchMavenArtifacts(Dependency dependency) throws IOException {
|
||||
protected List<MavenArtifact> fetchMavenArtifacts(Dependency dependency) throws IOException {
|
||||
IOException lastException = null;
|
||||
long sleepingTimeBetweenRetriesInMillis = 1000;
|
||||
int triesLeft = NUMBER_OF_TRIES;
|
||||
|
||||
@@ -30,6 +30,7 @@ public class CentralAnalyzerTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
@SuppressWarnings("PMD.NonStaticInitializer")
|
||||
public void testFetchMavenArtifactsWithoutException(@Mocked final CentralSearch centralSearch,
|
||||
@Mocked final Dependency dependency)
|
||||
throws IOException {
|
||||
|
||||
Reference in New Issue
Block a user