Skip to content
Permalink
Browse files
[JENKINS-30103] Deprecated methods have been removed. Asked by @uhafner
  • Loading branch information
Manuel Recena committed Aug 25, 2015
1 parent 0277ea7 commit b62aa1033dd9f2a5221066b57faed3edcf5120d7
@@ -44,101 +44,6 @@
/** 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);
@@ -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}.
*
@@ -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;
@@ -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}.
*
@@ -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}.
*
@@ -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);
@@ -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>.
@@ -8,8 +8,6 @@
import org.junit.*;
import org.jvnet.hudson.test.JenkinsRule;

import java.io.File;

import static org.junit.Assert.assertEquals;

/**

0 comments on commit b62aa10

Please sign in to comment.