Skip to content

Commit cc9dae5

Browse files
committed
Fix deprecated constructor by calling as this
1 parent 422e829 commit cc9dae5

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/main/java/org/jenkinsci/plugins/GithubSecurityRealm.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,19 @@ public GithubSecurityRealm(String githubWebUri,
148148
this.forceGithubEmail = forceGithubEmail;
149149
}
150150

151+
/**
152+
This method is deprecated.
153+
@deprecated use GithubSecurityRealm(githubWebUri, githubApiUri, clientID, clientSecret, oauthScopes, emailDomains, forceGithubEmail)
154+
*/
155+
@Deprecated
156+
public GithubSecurityRealm(String githubWebUri,
157+
String githubApiUri,
158+
String clientID,
159+
String clientSecret,
160+
String oauthScopes) {
161+
this(githubWebUri, githubApiUri, clientID, clientSecret, oauthScopes, "", false);
162+
}
163+
151164
private GithubSecurityRealm() { }
152165

153166
/**

0 commit comments

Comments
 (0)