提交 554e087a 编写于 作者: S Stephen Connolly

Also need @DataBoundConstructor annotated constructors

上级 02336bb2
......@@ -29,6 +29,7 @@ import hudson.ExtensionPoint;
import hudson.model.AbstractDescribableImpl;
import hudson.util.CaseInsensitiveComparator;
import org.apache.commons.lang.StringUtils;
import org.kohsuke.stapler.DataBoundConstructor;
import javax.annotation.Nonnull;
import java.util.Comparator;
......@@ -138,6 +139,9 @@ public abstract class IdStrategy extends AbstractDescribableImpl<IdStrategy> imp
*/
public static class CaseInsensitive extends IdStrategy {
@DataBoundConstructor
public CaseInsensitive() {}
@Override
@Nonnull
public String filenameOf(@Nonnull String id) {
......@@ -178,6 +182,9 @@ public abstract class IdStrategy extends AbstractDescribableImpl<IdStrategy> imp
*/
public static class CaseSensitive extends IdStrategy {
@DataBoundConstructor
public CaseSensitive() {}
/**
* {@inheritDoc}
*/
......@@ -255,6 +262,9 @@ public abstract class IdStrategy extends AbstractDescribableImpl<IdStrategy> imp
*/
public static class CaseSensitiveEmailAddress extends CaseSensitive {
@DataBoundConstructor
public CaseSensitiveEmailAddress() {}
/**
* {@inheritDoc}
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册