Skip to content
This repository has been archived by the owner on Jan 16, 2021. It is now read-only.

Commit

Permalink
[FIXED JENKINS-19713] Ensure zero warnings option in the portlet can …
Browse files Browse the repository at this point in the history
…be enabled.
  • Loading branch information
orrc committed Apr 26, 2016
1 parent 87e3d39 commit 1840ae6
Showing 1 changed file with 12 additions and 11 deletions.
Expand Up @@ -17,27 +17,28 @@
* @author Ulli Hafner
*/
public class WarningsTablePortlet extends AbstractWarningsTablePortlet {

/**
* Creates a new instance of {@link WarningsTablePortlet}.
*
* @param name
* the name of the portlet
* @see #WarningsTablePortlet(String, boolean)
*/
@DataBoundConstructor
@Deprecated
public WarningsTablePortlet(final String name) {
super(name);
}

/** {@inheritDoc} */
@Override
protected Class<? extends AbstractProjectAction<?>> getAction() {
return LintProjectAction.class;
/**
* @param name The display name of the portlet.
* @param canHideZeroWarningsProjects Whether to hide projects from this portlet if they have no warnings.
*/
@DataBoundConstructor
public WarningsTablePortlet(final String name, final boolean canHideZeroWarningsProjects) {
super(name, canHideZeroWarningsProjects);
}

/** {@inheritDoc} */
@Override
protected String getPluginName() {
return LintDescriptor.PLUGIN_NAME;
protected Class<? extends AbstractProjectAction<?>> getAction() {
return LintProjectAction.class;
}

/**
Expand Down

0 comments on commit 1840ae6

Please sign in to comment.