Skip to content

Commit

Permalink
Remove useless parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre Fillatre committed Apr 3, 2022
1 parent b84b5a5 commit 66eb70f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import java.io.File;
import java.io.IOException;
import java.nio.charset.Charset;
import java.nio.file.Files;
import java.util.Objects;
import java.util.Set;
import java.util.concurrent.TimeUnit;
Expand Down Expand Up @@ -31,7 +30,6 @@ public class DepCleanManager {
private static final String SEPARATOR = "-------------------------------------------------------";
private static final String DIRECTORY_TO_EXTRACT_DEPENDENCIES = "dependency";

private final DefaultProjectDependencyAnalyzer projectDependencyAnalyzer;
private final DependencyManagerWrapper dependencyManager;
private final boolean skipDepClean;
private final boolean ignoreTests;
Expand Down Expand Up @@ -65,6 +63,7 @@ public ProjectDependencyAnalysis execute() throws AnalysisFailureException {

extractLibClasses();

final DefaultProjectDependencyAnalyzer projectDependencyAnalyzer = new DefaultProjectDependencyAnalyzer();
final ProjectDependencyAnalysis analysis = projectDependencyAnalyzer.analyze(buildProjectContext());
analysis.print();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,6 @@ public void clear() {
}

static class DepCleanManagerBuilder {
private final DefaultProjectDependencyAnalyzer projectDependencyAnalyzer = new DefaultProjectDependencyAnalyzer();
private DependencyManagerWrapper dependencyManager = new FakeDependencyManager(logger);
private boolean skipDepClean = false;
private boolean ignoreTests = false;
Expand All @@ -238,7 +237,6 @@ static class DepCleanManagerBuilder {

public DepCleanManager build() {
return new DepCleanManager(
projectDependencyAnalyzer,
dependencyManager,
skipDepClean,
ignoreTests,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
import org.apache.maven.shared.dependency.graph.DependencyGraphBuilder;
import se.kth.depclean.core.DepCleanManager;
import se.kth.depclean.core.analysis.AnalysisFailureException;
import se.kth.depclean.core.analysis.DefaultProjectDependencyAnalyzer;
import se.kth.depclean.wrapper.MavenDependencyManager;

/**
Expand Down Expand Up @@ -142,7 +141,6 @@ public class DepCleanMojo extends AbstractMojo {
public final void execute() {
try {
final DepCleanManager depCleanManager = new DepCleanManager(
new DefaultProjectDependencyAnalyzer(),
new MavenDependencyManager(
getLog(),
project,
Expand Down

0 comments on commit 66eb70f

Please sign in to comment.