Skip to content
This repository was archived by the owner on Apr 6, 2022. It is now read-only.

Commit b62aa10

Browse files
author
Manuel Recena
committedAug 25, 2015
[JENKINS-30103] Deprecated methods have been removed. Asked by @uhafner
1 parent 0277ea7 commit b62aa10

File tree

5 files changed

+0
-196
lines changed

5 files changed

+0
-196
lines changed
 

‎src/main/java/hudson/plugins/dry/DryPublisher.java

-95
Original file line numberDiff line numberDiff line change
@@ -44,101 +44,6 @@ public class DryPublisher extends HealthAwarePublisher {
4444
/** Minimum number of duplicate lines for normal priority warnings. @since 2.5 */
4545
private int normalThreshold;
4646

47-
/**
48-
* Creates a new instance of <code>PmdPublisher</code>.
49-
*
50-
* @param healthy
51-
* Report health as 100% when the number of warnings is less than
52-
* this value
53-
* @param unHealthy
54-
* Report health as 0% when the number of warnings is greater
55-
* than this value
56-
* @param thresholdLimit
57-
* determines which warning priorities should be considered when
58-
* evaluating the build stability and health
59-
* @param defaultEncoding
60-
* the default encoding to be used when reading and parsing files
61-
* @param useDeltaValues
62-
* determines whether the absolute annotations delta or the
63-
* actual annotations set difference should be used to evaluate
64-
* the build stability
65-
* @param unstableTotalAll
66-
* annotation threshold
67-
* @param unstableTotalHigh
68-
* annotation threshold
69-
* @param unstableTotalNormal
70-
* annotation threshold
71-
* @param unstableTotalLow
72-
* annotation threshold
73-
* @param unstableNewAll
74-
* annotation threshold
75-
* @param unstableNewHigh
76-
* annotation threshold
77-
* @param unstableNewNormal
78-
* annotation threshold
79-
* @param unstableNewLow
80-
* annotation threshold
81-
* @param failedTotalAll
82-
* annotation threshold
83-
* @param failedTotalHigh
84-
* annotation threshold
85-
* @param failedTotalNormal
86-
* annotation threshold
87-
* @param failedTotalLow
88-
* annotation threshold
89-
* @param failedNewAll
90-
* annotation threshold
91-
* @param failedNewHigh
92-
* annotation threshold
93-
* @param failedNewNormal
94-
* annotation threshold
95-
* @param failedNewLow
96-
* annotation threshold
97-
* @param canRunOnFailed
98-
* determines whether the plug-in can run for failed builds, too
99-
* @param usePreviousBuildAsReference
100-
* determines whether to always use the previous build as the reference build
101-
* @param useStableBuildAsReference
102-
* determines whether only stable builds should be used as reference builds or not
103-
* @param shouldDetectModules
104-
* determines whether module names should be derived from Maven POM or Ant build files
105-
* @param canComputeNew
106-
* determines whether new warnings should be computed (with
107-
* respect to baseline)
108-
* @param pattern
109-
* Ant file-set pattern to scan for DRY files
110-
* @param highThreshold
111-
* minimum number of duplicate lines for high priority warnings
112-
* @param normalThreshold
113-
* minimum number of duplicate lines for normal priority warnings
114-
*
115-
* @deprecated see {@link #DryPublisher(int, int)}
116-
*/
117-
// CHECKSTYLE:OFF
118-
@SuppressWarnings("PMD.ExcessiveParameterList")
119-
@Deprecated
120-
public DryPublisher(final String healthy, final String unHealthy, final String thresholdLimit,
121-
final String defaultEncoding, final boolean useDeltaValues,
122-
final String unstableTotalAll, final String unstableTotalHigh, final String unstableTotalNormal, final String unstableTotalLow,
123-
final String unstableNewAll, final String unstableNewHigh, final String unstableNewNormal, final String unstableNewLow,
124-
final String failedTotalAll, final String failedTotalHigh, final String failedTotalNormal, final String failedTotalLow,
125-
final String failedNewAll, final String failedNewHigh, final String failedNewNormal, final String failedNewLow,
126-
final boolean canRunOnFailed, final boolean usePreviousBuildAsReference,
127-
final boolean useStableBuildAsReference, final boolean shouldDetectModules,
128-
final boolean canComputeNew, final String pattern, final int highThreshold, final int normalThreshold) {
129-
super(healthy, unHealthy, thresholdLimit, defaultEncoding, useDeltaValues,
130-
unstableTotalAll, unstableTotalHigh, unstableTotalNormal, unstableTotalLow,
131-
unstableNewAll, unstableNewHigh, unstableNewNormal, unstableNewLow,
132-
failedTotalAll, failedTotalHigh, failedTotalNormal, failedTotalLow,
133-
failedNewAll, failedNewHigh, failedNewNormal, failedNewLow,
134-
canRunOnFailed, usePreviousBuildAsReference, useStableBuildAsReference, shouldDetectModules,
135-
canComputeNew, true, PLUGIN_NAME);
136-
this.pattern = pattern;
137-
this.highThreshold = highThreshold;
138-
this.normalThreshold = normalThreshold;
139-
}
140-
// CHECKSTYLE:ON
141-
14247
@DataBoundConstructor
14348
public DryPublisher(final int highThreshold, final int normalThreshold) {
14449
super(PLUGIN_NAME);

‎src/main/java/hudson/plugins/dry/DryReporterResult.java

-24
Original file line numberDiff line numberDiff line change
@@ -14,30 +14,6 @@
1414
public class DryReporterResult extends DryResult {
1515
private static final long serialVersionUID = -2812927497499345424L;
1616

17-
/**
18-
* Creates a new instance of {@link DryReporterResult}.
19-
*
20-
* @param build
21-
* the current build as owner of this action
22-
* @param defaultEncoding
23-
* the default encoding to be used when reading and parsing files
24-
* @param result
25-
* the parsed result with all annotations
26-
* @param usePreviousBuildAsReference
27-
* determines whether to use the previous build as the reference
28-
* build
29-
* @param useStableBuildAsReference
30-
* determines whether only stable builds should be used as
31-
* reference builds or not
32-
*
33-
* @deprecated see {@link #DryReporterResult(Run, String, ParserResult, boolean, boolean)}
34-
*/
35-
@Deprecated
36-
public DryReporterResult(final AbstractBuild<?, ?> build, final String defaultEncoding, final ParserResult result,
37-
final boolean usePreviousBuildAsReference, final boolean useStableBuildAsReference) {
38-
this((Run<?, ?>) build, defaultEncoding, result, usePreviousBuildAsReference, useStableBuildAsReference);
39-
}
40-
4117
/**
4218
* Creates a new instance of {@link DryReporterResult}.
4319
*

‎src/main/java/hudson/plugins/dry/DryResult.java

-58
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import com.thoughtworks.xstream.XStream;
44

5-
import hudson.model.AbstractBuild;
65
import hudson.model.Run;
76
import hudson.plugins.analysis.core.BuildHistory;
87
import hudson.plugins.analysis.core.BuildResult;
@@ -19,30 +18,6 @@
1918
public class DryResult extends BuildResult {
2019
private static final long serialVersionUID = 2768250056765266658L;
2120

22-
/**
23-
* Creates a new instance of {@link DryResult}.
24-
*
25-
* @param build
26-
* the current build as owner of this action
27-
* @param defaultEncoding
28-
* the default encoding to be used when reading and parsing files
29-
* @param result
30-
* the parsed result with all annotations
31-
* @param usePreviousBuildAsReference
32-
* determines whether to use the previous build as the reference
33-
* build
34-
* @param useStableBuildAsReference
35-
* determines whether only stable builds should be used as
36-
* reference builds or not
37-
*
38-
* @deprecated see {@link #DryResult(Run, String, ParserResult, boolean, boolean, Class)}
39-
*/
40-
@Deprecated
41-
public DryResult(final AbstractBuild<?, ?> build, final String defaultEncoding, final ParserResult result,
42-
final boolean usePreviousBuildAsReference, final boolean useStableBuildAsReference) {
43-
this((Run<?, ?>) build, defaultEncoding, result, usePreviousBuildAsReference, useStableBuildAsReference);
44-
}
45-
4621
/**
4722
* Creates a new instance of {@link DryResult}.
4823
*
@@ -65,33 +40,6 @@ public DryResult(final Run<?, ?> build, final String defaultEncoding, final Pars
6540
DryResultAction.class);
6641
}
6742

68-
/**
69-
* Creates a new instance of {@link DryResult}.
70-
*
71-
* @param build
72-
* the current build as owner of this action
73-
* @param defaultEncoding
74-
* the default encoding to be used when reading and parsing files
75-
* @param result
76-
* the parsed result with all annotations
77-
* @param usePreviousBuildAsReference
78-
* determines whether to use the previous build as the reference
79-
* build
80-
* @param useStableBuildAsReference
81-
* determines whether only stable builds should be used as
82-
* reference builds or not
83-
* @param actionType
84-
* the type of the result action
85-
*
86-
* @deprecated {@link #DryResult(Run, String, ParserResult, boolean, boolean, Class)}
87-
*/
88-
@Deprecated
89-
protected DryResult(final AbstractBuild<?, ?> build, final String defaultEncoding, final ParserResult result,
90-
final boolean usePreviousBuildAsReference, final boolean useStableBuildAsReference,
91-
final Class<? extends ResultAction<DryResult>> actionType) {
92-
this((Run<?, ?>) build, defaultEncoding, result, usePreviousBuildAsReference, useStableBuildAsReference, actionType);
93-
}
94-
9543
/**
9644
* Creates a new instance of {@link DryResult}.
9745
*
@@ -117,12 +65,6 @@ protected DryResult(final Run<?, ?> build, final String defaultEncoding, final P
11765
defaultEncoding, true);
11866
}
11967

120-
@Deprecated
121-
DryResult(final AbstractBuild<?, ?> build, final BuildHistory history, final ParserResult result,
122-
final String defaultEncoding, final boolean canSerialize) {
123-
this((Run<?, ?>) build, history, result, defaultEncoding, canSerialize);
124-
}
125-
12668
DryResult(final Run<?, ?> build, final BuildHistory history, final ParserResult result,
12769
final String defaultEncoding, final boolean canSerialize) {
12870
super(build, history, result, defaultEncoding);

‎src/main/java/hudson/plugins/dry/DryResultAction.java

-17
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,6 @@
1818
* @author Ulli Hafner
1919
*/
2020
public class DryResultAction extends AbstractResultAction<DryResult> {
21-
/**
22-
* Creates a new instance of <code>PmdResultAction</code>.
23-
*
24-
* @param owner
25-
* the associated build of this action
26-
* @param healthDescriptor
27-
* health descriptor to use
28-
* @param result
29-
* the result in this build
30-
*
31-
* @deprecated see {@link #DryResultAction(Run, HealthDescriptor, DryResult)}
32-
*/
33-
@Deprecated
34-
public DryResultAction(final AbstractBuild<?, ?> owner, final HealthDescriptor healthDescriptor,
35-
final DryResult result) {
36-
this((Run<?, ?>) owner, healthDescriptor, result);
37-
}
3821

3922
/**
4023
* Creates a new instance of <code>PmdResultAction</code>.

‎src/test/java/hudson/plugins/dry/DryWorkflowTest.java

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
import org.junit.*;
99
import org.jvnet.hudson.test.JenkinsRule;
1010

11-
import java.io.File;
12-
1311
import static org.junit.Assert.assertEquals;
1412

1513
/**

0 commit comments

Comments
 (0)
This repository has been archived.