Skip to content

Commit 8e13f59

Browse files
committed
Deprecate magic method.
Signed-off-by: Kanstantsin Shautsou <kanstantsin.sha@gmail.com>
1 parent ec4bf69 commit 8e13f59

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/main/java/org/jenkinsci/plugins/github/config/GitHubPluginConfig.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,15 @@ public List<GitHubServerConfig> getConfigs() {
9090
return configs;
9191
}
9292

93+
/**
94+
* @deprecated get GitHubServerConfig matching to exact remote GH server, filter and only then check allowToManage
95+
*/
96+
@Deprecated
9397
public boolean isManageHooks() {
94-
return from(getConfigs()).filter(allowedToManageHooks()).first().isPresent();
98+
return from(getConfigs())
99+
.filter(allowedToManageHooks())
100+
.first()
101+
.isPresent();
95102
}
96103

97104
public void setHookUrl(URL hookUrl) {

0 commit comments

Comments
 (0)