Permalink
Browse files

[FIXED JENKINS-19713] Ensure zero warnings option in the portlet can …

…be enabled.
  • Loading branch information...
orrc committed Apr 26, 2016
1 parent 87e3d39 commit 1840ae66ae3b413c32950cd1b6b78ebdc0f160e0
Showing with 12 additions and 11 deletions.
  1. +12 −11 src/main/java/org/jenkinsci/plugins/android_lint/dashboard/WarningsTablePortlet.java
@@ -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;
}

/**

0 comments on commit 1840ae6

Please sign in to comment.