Skip to content
Permalink
Browse files

[JENKINS-43507] Lower restrictions on deprecated methods

  • Loading branch information...
stephenc committed Jun 12, 2017
1 parent 6396748 commit 4cfcc5177dae91872034afe46c4042c561d274c3
@@ -175,7 +175,7 @@ public AbstractGitSCMSource(String id) {
* @return the includes.
*/
@Deprecated
@Restricted(DoNotUse.class)
@Restricted(NoExternalUse.class)
@RestrictedSince("3.4.0")
public String getIncludes() {
for (SCMSourceTrait trait: getTraits()) {
@@ -191,7 +191,7 @@ public String getIncludes() {
* @deprecated use {@link WildcardSCMSourceFilterTrait}
*/
@Deprecated
@Restricted(DoNotUse.class)
@Restricted(NoExternalUse.class)
@RestrictedSince("3.4.0")
public String getExcludes() {
for (SCMSourceTrait trait : getTraits()) {
@@ -210,7 +210,7 @@ public String getExcludes() {
*/
@CheckForNull
@Deprecated
@Restricted(DoNotUse.class)
@Restricted(NoExternalUse.class)
@RestrictedSince("3.4.0")
public GitRepositoryBrowser getBrowser() {
for (SCMSourceTrait trait : getTraits()) {
@@ -230,7 +230,7 @@ public GitRepositoryBrowser getBrowser() {
*/
@CheckForNull
@Deprecated
@Restricted(DoNotUse.class)
@Restricted(NoExternalUse.class)
@RestrictedSince("3.4.0")
public String getGitTool() {
for (SCMSourceTrait trait : getTraits()) {
@@ -251,7 +251,7 @@ public String getGitTool() {
*/
@NonNull
@Deprecated
@Restricted(DoNotUse.class)
@Restricted(NoExternalUse.class)
@RestrictedSince("3.4.0")
public List<GitSCMExtension> getExtensions() {
List<GitSCMExtension> extensions = new ArrayList<>();
@@ -279,7 +279,7 @@ public String getGitTool() {
* @return the remote name.
*/
@Deprecated
@Restricted(DoNotUse.class)
@Restricted(NoExternalUse.class)
@RestrictedSince("3.4.0")
public String getRemoteName() {
for (SCMSourceTrait t : getTraits()) {
@@ -471,7 +471,7 @@ public FormValidation doCheckCredentialsId(@AncestorInPath SCMSourceOwner contex
}

@Deprecated
@Restricted(DoNotUse.class)
@Restricted(NoExternalUse.class)
@RestrictedSince("3.4.0")
public GitSCM.DescriptorImpl getSCMDescriptor() {
return (GitSCM.DescriptorImpl)Jenkins.getActiveInstance().getDescriptor(GitSCM.class);

0 comments on commit 4cfcc51

Please sign in to comment.
You can’t perform that action at this time.