26
26
27
27
import java .io .IOException ;
28
28
import java .util .Arrays ;
29
+ import java .util .Collection ;
29
30
import java .util .Collections ;
30
- import java .util .LinkedHashSet ;
31
- import java .util .Set ;
31
+ import java .util .LinkedList ;
32
32
33
33
import javax .annotation .CheckForNull ;
34
34
import javax .annotation .Nonnull ;
37
37
import org .jenkinsci .lib .dtkit .descriptor .TestTypeDescriptor ;
38
38
import org .jenkinsci .lib .dtkit .type .TestType ;
39
39
import org .jenkinsci .plugins .xunit .service .TransformerException ;
40
- import org .jenkinsci .plugins .xunit .threshold .FailedThreshold ;
41
- import org .jenkinsci .plugins .xunit .threshold .SkippedThreshold ;
42
40
import org .jenkinsci .plugins .xunit .threshold .XUnitThreshold ;
43
41
import org .jenkinsci .plugins .xunit .threshold .XUnitThresholdDescriptor ;
44
42
import org .kohsuke .stapler .DataBoundConstructor ;
@@ -78,7 +76,7 @@ public class XUnitPublisher extends Recorder implements SimpleBuildStep {
78
76
private XUnitThreshold [] thresholds ;
79
77
private int thresholdMode ;
80
78
private ExtraConfiguration extraConfiguration ;
81
- private Set <TestDataPublisher > testDataPublishers ;
79
+ private Collection <TestDataPublisher > testDataPublishers ;
82
80
83
81
@ DataBoundConstructor
84
82
public XUnitPublisher (@ CheckForNull TestType [] tools , @ CheckForNull XUnitThreshold [] thresholds , int thresholdMode , @ CheckForNull String testTimeMargin ) {
@@ -126,7 +124,7 @@ public ExtraConfiguration getExtraConfiguration() {
126
124
return extraConfiguration ;
127
125
}
128
126
129
- public @ Nonnull Set <TestDataPublisher > getTestDataPublishers () {
127
+ public @ Nonnull Collection <TestDataPublisher > getTestDataPublishers () {
130
128
return testDataPublishers ;
131
129
}
132
130
@@ -139,10 +137,10 @@ public ExtraConfiguration getExtraConfiguration() {
139
137
* publisher
140
138
*/
141
139
@ DataBoundSetter
142
- public void setTestDataPublishers (@ CheckForNull Set <TestDataPublisher > testDataPublishers ) {
140
+ public void setTestDataPublishers (@ CheckForNull Collection <TestDataPublisher > testDataPublishers ) {
143
141
this .testDataPublishers = testDataPublishers != null
144
- ? new LinkedHashSet <>(testDataPublishers )
145
- : Collections .<TestDataPublisher > emptySet ();
142
+ ? new LinkedList <>(testDataPublishers )
143
+ : Collections .<TestDataPublisher > emptyList ();
146
144
}
147
145
148
146
@ SuppressWarnings ("deprecation" )
0 commit comments