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

Commit

Permalink
[JENKINS-30103] Deprecated methods have been removed. Asked by @uhafner
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Recena committed Aug 25, 2015
1 parent 0277ea7 commit b62aa10
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 196 deletions.
95 changes: 0 additions & 95 deletions src/main/java/hudson/plugins/dry/DryPublisher.java
Expand Up @@ -44,101 +44,6 @@ public class DryPublisher extends HealthAwarePublisher {
/** Minimum number of duplicate lines for normal priority warnings. @since 2.5 */
private int normalThreshold;

/**
* Creates a new instance of <code>PmdPublisher</code>.
*
* @param healthy
* Report health as 100% when the number of warnings is less than
* this value
* @param unHealthy
* Report health as 0% when the number of warnings is greater
* than this value
* @param thresholdLimit
* determines which warning priorities should be considered when
* evaluating the build stability and health
* @param defaultEncoding
* the default encoding to be used when reading and parsing files
* @param useDeltaValues
* determines whether the absolute annotations delta or the
* actual annotations set difference should be used to evaluate
* the build stability
* @param unstableTotalAll
* annotation threshold
* @param unstableTotalHigh
* annotation threshold
* @param unstableTotalNormal
* annotation threshold
* @param unstableTotalLow
* annotation threshold
* @param unstableNewAll
* annotation threshold
* @param unstableNewHigh
* annotation threshold
* @param unstableNewNormal
* annotation threshold
* @param unstableNewLow
* annotation threshold
* @param failedTotalAll
* annotation threshold
* @param failedTotalHigh
* annotation threshold
* @param failedTotalNormal
* annotation threshold
* @param failedTotalLow
* annotation threshold
* @param failedNewAll
* annotation threshold
* @param failedNewHigh
* annotation threshold
* @param failedNewNormal
* annotation threshold
* @param failedNewLow
* annotation threshold
* @param canRunOnFailed
* determines whether the plug-in can run for failed builds, too
* @param usePreviousBuildAsReference
* determines whether to always use the previous build as the reference build
* @param useStableBuildAsReference
* determines whether only stable builds should be used as reference builds or not
* @param shouldDetectModules
* determines whether module names should be derived from Maven POM or Ant build files
* @param canComputeNew
* determines whether new warnings should be computed (with
* respect to baseline)
* @param pattern
* Ant file-set pattern to scan for DRY files
* @param highThreshold
* minimum number of duplicate lines for high priority warnings
* @param normalThreshold
* minimum number of duplicate lines for normal priority warnings
*
* @deprecated see {@link #DryPublisher(int, int)}
*/
// CHECKSTYLE:OFF
@SuppressWarnings("PMD.ExcessiveParameterList")
@Deprecated
public DryPublisher(final String healthy, final String unHealthy, final String thresholdLimit,
final String defaultEncoding, final boolean useDeltaValues,
final String unstableTotalAll, final String unstableTotalHigh, final String unstableTotalNormal, final String unstableTotalLow,
final String unstableNewAll, final String unstableNewHigh, final String unstableNewNormal, final String unstableNewLow,
final String failedTotalAll, final String failedTotalHigh, final String failedTotalNormal, final String failedTotalLow,
final String failedNewAll, final String failedNewHigh, final String failedNewNormal, final String failedNewLow,
final boolean canRunOnFailed, final boolean usePreviousBuildAsReference,
final boolean useStableBuildAsReference, final boolean shouldDetectModules,
final boolean canComputeNew, final String pattern, final int highThreshold, final int normalThreshold) {
super(healthy, unHealthy, thresholdLimit, defaultEncoding, useDeltaValues,
unstableTotalAll, unstableTotalHigh, unstableTotalNormal, unstableTotalLow,
unstableNewAll, unstableNewHigh, unstableNewNormal, unstableNewLow,
failedTotalAll, failedTotalHigh, failedTotalNormal, failedTotalLow,
failedNewAll, failedNewHigh, failedNewNormal, failedNewLow,
canRunOnFailed, usePreviousBuildAsReference, useStableBuildAsReference, shouldDetectModules,
canComputeNew, true, PLUGIN_NAME);
this.pattern = pattern;
this.highThreshold = highThreshold;
this.normalThreshold = normalThreshold;
}
// CHECKSTYLE:ON

@DataBoundConstructor
public DryPublisher(final int highThreshold, final int normalThreshold) {
super(PLUGIN_NAME);
Expand Down
24 changes: 0 additions & 24 deletions src/main/java/hudson/plugins/dry/DryReporterResult.java
Expand Up @@ -14,30 +14,6 @@
public class DryReporterResult extends DryResult {
private static final long serialVersionUID = -2812927497499345424L;

/**
* Creates a new instance of {@link DryReporterResult}.
*
* @param build
* the current build as owner of this action
* @param defaultEncoding
* the default encoding to be used when reading and parsing files
* @param result
* the parsed result with all annotations
* @param usePreviousBuildAsReference
* determines whether to use the previous build as the reference
* build
* @param useStableBuildAsReference
* determines whether only stable builds should be used as
* reference builds or not
*
* @deprecated see {@link #DryReporterResult(Run, String, ParserResult, boolean, boolean)}
*/
@Deprecated
public DryReporterResult(final AbstractBuild<?, ?> build, final String defaultEncoding, final ParserResult result,
final boolean usePreviousBuildAsReference, final boolean useStableBuildAsReference) {
this((Run<?, ?>) build, defaultEncoding, result, usePreviousBuildAsReference, useStableBuildAsReference);
}

/**
* Creates a new instance of {@link DryReporterResult}.
*
Expand Down
58 changes: 0 additions & 58 deletions src/main/java/hudson/plugins/dry/DryResult.java
Expand Up @@ -2,7 +2,6 @@

import com.thoughtworks.xstream.XStream;

import hudson.model.AbstractBuild;
import hudson.model.Run;
import hudson.plugins.analysis.core.BuildHistory;
import hudson.plugins.analysis.core.BuildResult;
Expand All @@ -19,30 +18,6 @@
public class DryResult extends BuildResult {
private static final long serialVersionUID = 2768250056765266658L;

/**
* Creates a new instance of {@link DryResult}.
*
* @param build
* the current build as owner of this action
* @param defaultEncoding
* the default encoding to be used when reading and parsing files
* @param result
* the parsed result with all annotations
* @param usePreviousBuildAsReference
* determines whether to use the previous build as the reference
* build
* @param useStableBuildAsReference
* determines whether only stable builds should be used as
* reference builds or not
*
* @deprecated see {@link #DryResult(Run, String, ParserResult, boolean, boolean, Class)}
*/
@Deprecated
public DryResult(final AbstractBuild<?, ?> build, final String defaultEncoding, final ParserResult result,
final boolean usePreviousBuildAsReference, final boolean useStableBuildAsReference) {
this((Run<?, ?>) build, defaultEncoding, result, usePreviousBuildAsReference, useStableBuildAsReference);
}

/**
* Creates a new instance of {@link DryResult}.
*
Expand All @@ -65,33 +40,6 @@ public DryResult(final Run<?, ?> build, final String defaultEncoding, final Pars
DryResultAction.class);
}

/**
* Creates a new instance of {@link DryResult}.
*
* @param build
* the current build as owner of this action
* @param defaultEncoding
* the default encoding to be used when reading and parsing files
* @param result
* the parsed result with all annotations
* @param usePreviousBuildAsReference
* determines whether to use the previous build as the reference
* build
* @param useStableBuildAsReference
* determines whether only stable builds should be used as
* reference builds or not
* @param actionType
* the type of the result action
*
* @deprecated {@link #DryResult(Run, String, ParserResult, boolean, boolean, Class)}
*/
@Deprecated
protected DryResult(final AbstractBuild<?, ?> build, final String defaultEncoding, final ParserResult result,
final boolean usePreviousBuildAsReference, final boolean useStableBuildAsReference,
final Class<? extends ResultAction<DryResult>> actionType) {
this((Run<?, ?>) build, defaultEncoding, result, usePreviousBuildAsReference, useStableBuildAsReference, actionType);
}

/**
* Creates a new instance of {@link DryResult}.
*
Expand All @@ -117,12 +65,6 @@ protected DryResult(final Run<?, ?> build, final String defaultEncoding, final P
defaultEncoding, true);
}

@Deprecated
DryResult(final AbstractBuild<?, ?> build, final BuildHistory history, final ParserResult result,
final String defaultEncoding, final boolean canSerialize) {
this((Run<?, ?>) build, history, result, defaultEncoding, canSerialize);
}

DryResult(final Run<?, ?> build, final BuildHistory history, final ParserResult result,
final String defaultEncoding, final boolean canSerialize) {
super(build, history, result, defaultEncoding);
Expand Down
17 changes: 0 additions & 17 deletions src/main/java/hudson/plugins/dry/DryResultAction.java
Expand Up @@ -18,23 +18,6 @@
* @author Ulli Hafner
*/
public class DryResultAction extends AbstractResultAction<DryResult> {
/**
* Creates a new instance of <code>PmdResultAction</code>.
*
* @param owner
* the associated build of this action
* @param healthDescriptor
* health descriptor to use
* @param result
* the result in this build
*
* @deprecated see {@link #DryResultAction(Run, HealthDescriptor, DryResult)}
*/
@Deprecated
public DryResultAction(final AbstractBuild<?, ?> owner, final HealthDescriptor healthDescriptor,
final DryResult result) {
this((Run<?, ?>) owner, healthDescriptor, result);
}

/**
* Creates a new instance of <code>PmdResultAction</code>.
Expand Down
2 changes: 0 additions & 2 deletions src/test/java/hudson/plugins/dry/DryWorkflowTest.java
Expand Up @@ -8,8 +8,6 @@
import org.junit.*;
import org.jvnet.hudson.test.JenkinsRule;

import java.io.File;

import static org.junit.Assert.assertEquals;

/**
Expand Down

0 comments on commit b62aa10

Please sign in to comment.