Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…ct resolve; added Dependency
  • Loading branch information
littlelion308 committed May 6, 2022
2 parents ef15b80 + 79f4b82 commit 380f7e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/main/java/com/ethlo/zally/ZallyMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import java.nio.file.Path;
import java.nio.file.Paths;
import java.nio.file.StandardOpenOption;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.LinkedHashMap;
Expand Down Expand Up @@ -308,7 +309,7 @@ private Map<CheckDetails, List<Result>> validate(ZallyRunner zallyRunner, final
}

private List<String> gatherViolations(Map<Severity, Map<CheckDetails, List<Result>>> results){
final List<String> violations = new LinkedList<>();
final List<String> violations = new ArrayList<>();
results.forEach((severity, res) ->
res.forEach((checkDetails, resultList) ->
resultList.forEach(result ->
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/ethlo/zally/ZallyRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public Map<CheckDetails, List<Result>> validate(String url, final Set<String> sk

if (checkAnnotation != null && method.getParameterTypes().length == 1 && method.getParameterTypes()[0] == Context.class)
{
final List<Result> violationList = new LinkedList<>();
final List<Result> violationList = new ArrayList<>();
final CheckDetails checkDetails = performCheck(context, violationList, instance, ruleDetails.getRule(), ruleDetails.getRuleSet(), method, checkAnnotation, url);
returnValue.put(checkDetails, violationList);
}
Expand Down

0 comments on commit 380f7e0

Please sign in to comment.