Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e239ef5

Browse filesBrowse files
committed
Consistent name with other classes
1 parent f4b105b commit e239ef5
Copy full SHA for e239ef5

File tree

Expand file treeCollapse file tree

3 files changed

+7
-7
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+7
-7
lines changed

‎src/main/java/org/kohsuke/github/GHHook.java

Copy file name to clipboardExpand all lines: src/main/java/org/kohsuke/github/GHHook.java
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public Map<String, String> getConfig() {
4040
* Deletes this hook.
4141
*/
4242
public void delete() throws IOException {
43-
new Requester(root()).method("DELETE").to(path());
43+
new Requester(getRoot()).method("DELETE").to(getApiRoute());
4444
}
4545

4646
/**
@@ -51,7 +51,7 @@ public URL getHtmlUrl() {
5151
return null;
5252
}
5353

54-
abstract GitHub root();
54+
abstract GitHub getRoot();
5555

56-
abstract String path();
56+
abstract String getApiRoute();
5757
}

‎src/main/java/org/kohsuke/github/GHOrgHook.java

Copy file name to clipboardExpand all lines: src/main/java/org/kohsuke/github/GHOrgHook.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ class GHOrgHook extends GHHook {
1616
}
1717

1818
@Override
19-
GitHub root() {
19+
GitHub getRoot() {
2020
return organization.root;
2121
}
2222

2323
@Override
24-
String path() {
24+
String getApiRoute() {
2525
return String.format("/orgs/%s/hooks/%d", organization.getLogin(), id);
2626
}
2727
}

‎src/main/java/org/kohsuke/github/GHRepoHook.java

Copy file name to clipboardExpand all lines: src/main/java/org/kohsuke/github/GHRepoHook.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ class GHRepoHook extends GHHook {
1212
}
1313

1414
@Override
15-
GitHub root() {
15+
GitHub getRoot() {
1616
return repository.root;
1717
}
1818

1919
@Override
20-
String path() {
20+
String getApiRoute() {
2121
return String.format("/repos/%s/%s/hooks/%d", repository.getOwnerName(), repository.getName(), id);
2222
}
2323
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.