Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
Fix: thresholds set in global level will be copied to adapter level
Browse files Browse the repository at this point in the history
  • Loading branch information
cizezsy committed Jan 23, 2019
1 parent 18fa630 commit 6c3d5e9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import java.io.PrintStream;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.LinkedList;
Expand Down Expand Up @@ -289,10 +290,10 @@ private HealthReport processThresholds(Map<CoverageReportAdapter, List<CoverageR
LinkedList<CoverageResult> resultTask = new LinkedList<>();

for (Map.Entry<CoverageReportAdapter, List<CoverageResult>> results : adapterWithResults.entrySet()) {

// make local threshold over global threshold
List<Threshold> thresholds = results.getKey().getThresholds();
if (thresholds != null) {
thresholds = new ArrayList<>(thresholds);
for (Threshold t : globalThresholds) {
if (!thresholds.contains(t)) {
thresholds.add(t);
Expand Down

0 comments on commit 6c3d5e9

Please # to comment.