Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
slawekjaranowski committed May 26, 2024
1 parent c9e25bd commit 200199f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@
import javax.inject.Named;

import java.text.ChoiceFormat;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Deque;
import java.util.List;
import java.util.Objects;
import java.util.function.Predicate;
Expand Down Expand Up @@ -131,7 +129,6 @@ public BanDynamicVersions(

private final class BannedDynamicVersionCollector implements DependencyFilter {


private boolean isRoot = true;

private List<String> violations;
Expand Down Expand Up @@ -206,7 +203,8 @@ public boolean accept(DependencyNode node, List<DependencyNode> parents) {
return false;
}

private void addViolation(VersionConstraint versionContraint, DependencyNode node, List<DependencyNode> parents) {
private void addViolation(
VersionConstraint versionContraint, DependencyNode node, List<DependencyNode> parents) {
List<DependencyNode> intermediatePath = new ArrayList<>(parents);
if (!intermediatePath.isEmpty()) {
// This project is also included in the path, but we do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ DependencyNode resolveTransitiveDependencies(boolean excludeOptional, List<Strin
return resolveTransitiveDependencies(false, excludeOptional, excludedScopes);
}

DependencyNode resolveTransitiveDependencies(
boolean verbose, boolean excludeOptional, List<String> excludedScopes) throws EnforcerRuleException {
DependencyNode resolveTransitiveDependencies(boolean verbose, boolean excludeOptional, List<String> excludedScopes)
throws EnforcerRuleException {

try {
RepositorySystemSession repositorySystemSession = session.getRepositorySession();
Expand Down

0 comments on commit 200199f

Please sign in to comment.