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