提交 7fceddcd 编写于 作者: O Oleg Nenashev 提交者: Oliver Gondža

[FIXED JENKINS-36593] - Make ItemCategory#MIN_TOSHOW restricted (#2449)

* [JENKINS-36593] - ItemCategory#MIN_TOSHOW should be restricted

* [JENKINS-36593] - Add Javadoc

(cherry picked from commit 4577cf6a)
上级 19e1dd99
......@@ -30,6 +30,8 @@ import hudson.ExtensionPoint;
import hudson.model.TopLevelItemDescriptor;
import javax.annotation.Nonnull;
import org.kohsuke.accmod.Restricted;
import org.kohsuke.accmod.restrictions.NoExternalUse;
/**
* A category for {@link hudson.model.Item}s.
......@@ -38,6 +40,13 @@ import javax.annotation.Nonnull;
*/
public abstract class ItemCategory implements ExtensionPoint {
/**
* This field indicates how much non-default categories are required in
* order to start showing them in Jenkins.
* This field is restricted for the internal use only, because all other changes would cause binary compatibility issues.
* See <a href="https://issues.jenkins-ci.org/browse/JENKINS-36593">JENKINS-36593</a> for more info.
*/
@Restricted(NoExternalUse.class)
public static int MIN_TOSHOW = 1;
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册