Skip to content

Commit

Permalink
Add @databoundsetter annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
abioteau committed Jan 5, 2022
1 parent 339660a commit 82d5de1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/hudson/plugins/repo/ManifestAction.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import java.util.logging.Level;
import java.util.logging.Logger;

import org.kohsuke.stapler.DataBoundSetter;
import org.kohsuke.stapler.export.ExportedBean;

import hudson.model.BuildBadgeAction;
Expand Down Expand Up @@ -69,6 +70,7 @@ public class ManifestAction implements RunAction2, Serializable, BuildBadgeActio
*
* @param index the index, indexes less than or equal to {@code 1} will be discarded.
*/
@DataBoundSetter
public void setIndex(final Integer index) {
this.index = index == null || index <= 1 ? null : index;
try {
Expand Down

0 comments on commit 82d5de1

Please sign in to comment.