Skip to content
This repository was archived by the owner on Jul 31, 2025. It is now read-only.

Commit e239ef5

Browse files
committed
Consistent name with other classes
1 parent f4b105b commit e239ef5

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

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

Lines 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

Lines 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

Lines 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)