Please PMD

This commit is contained in:
Stefan Neuhaus
2017-10-04 14:43:12 +02:00
parent a38f8b447c
commit 6fc15984b8
2 changed files with 3 additions and 2 deletions

View File

@@ -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;

View File

@@ -30,6 +30,7 @@ public class CentralAnalyzerTest {
}
@Test
@SuppressWarnings("PMD.NonStaticInitializer")
public void testFetchMavenArtifactsWithoutException(@Mocked final CentralSearch centralSearch,
@Mocked final Dependency dependency)
throws IOException {