Skip to content

Commit 9615825

Browse files
committed
Fixed getter in publisher
1 parent 156899d commit 9615825

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

src/main/java/com/vectorcast/plugins/vectorcastcoverage/VectorCASTPublisher.java

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public class VectorCASTPublisher extends Recorder implements SimpleBuildStep {
7070
private VectorCASTHealthReportThresholds healthReports = new VectorCASTHealthReportThresholds(0, 100, 0, 70, 0, 80, 0, 80, 0, 80, 0, 80 );
7171

7272
// should not be used
73-
private VectorCASTHealthReportThresholds healthyTarget;
73+
private VectorCASTHealthReportThresholds healthyTarget = null;
7474
private VectorCASTHealthReportThresholds unhealthyTarget = null;
7575
private static final Logger logger = Logger.getLogger(VectorCASTPublisher.class.getName());
7676

@@ -109,8 +109,7 @@ public VectorCASTPublisher(String includes, Boolean useThreshold, VectorCASTHeal
109109

110110
// null check later
111111
this.unhealthyTarget = unhealthyTarget;
112-
this.healthReports = healthyTarget;
113-
112+
this.healthyTarget = healthyTarget;
114113
}
115114

116115
@Nonnull
@@ -122,6 +121,8 @@ public final String getIncludes() {
122121
public final Boolean getUseThreshold() {
123122
return useThreshold;
124123
}
124+
125+
125126
@Nonnull
126127
public final Boolean getUseCoverageHistory() {
127128
if (this.useCoverageHistory == null) {
@@ -138,18 +139,14 @@ public final Integer getMaxHistory() {
138139
}
139140
@Nonnull
140141
public final VectorCASTHealthReportThresholds getHealthyTarget() {
141-
return healthReports;
142+
return healthyTarget;
142143
}
143144

144145
@Nonnull
145146
public final VectorCASTHealthReportThresholds getUnhealthyTarget() {
146147
return unhealthyTarget;
147148
}
148-
149-
@Nonnull
150-
public final VectorCASTHealthReportThresholds getHealthyTarget() {
151-
return healthReports;
152-
}
149+
153150

154151
@DataBoundSetter public final void setIncludes(String inputIncludes) {
155152
this.includes = inputIncludes;

0 commit comments

Comments
 (0)