diff --git a/src/main/java/org/kohsuke/github/GHApp.java b/src/main/java/org/kohsuke/github/GHApp.java index 312f109499..e1386e72f4 100644 --- a/src/main/java/org/kohsuke/github/GHApp.java +++ b/src/main/java/org/kohsuke/github/GHApp.java @@ -92,18 +92,18 @@ public void setPermissions(Map permissions) { this.permissions = permissions; } - /* package */ GHApp wrapUp(GitHub root) { + GHApp wrapUp(GitHub root) { this.root = root; return this; } /** * Obtains all the installations associated with this app. - * + *

* You must use a JWT to access this endpoint. * - * @see List installations * @return a list of App installations + * @see List installations */ @Preview @Deprecated @@ -113,15 +113,15 @@ public PagedIterable listInstallations() { } /** - * Obtain an installation associated with this app. You must use a JWT to access this endpoint. + * Obtain an installation associated with this app. + *

+ * You must use a JWT to access this endpoint. * * @param id * Installation Id - * * @return a GHAppInstallation * @throws IOException * on error - * * @see Get an installation */ @Preview @@ -132,15 +132,15 @@ public GHAppInstallation getInstallationById(long id) throws IOException { } /** - * Obtain an organization installation associated with this app. You must use a JWT to access this endpoint. + * Obtain an organization installation associated with this app. + *

+ * You must use a JWT to access this endpoint. * * @param name * Organization name - * * @return a GHAppInstallation * @throws IOException * on error - * * @see Get an organization * installation */ @@ -152,17 +152,17 @@ public GHAppInstallation getInstallationByOrganization(String name) throws IOExc } /** - * Obtain an repository installation associated with this app You must use a JWT to access this endpoint. + * Obtain an repository installation associated with this app. + *

+ * You must use a JWT to access this endpoint. * * @param ownerName * Organization or user name * @param repositoryName * Repository name - * * @return a GHAppInstallation * @throws IOException * on error - * * @see Get a repository * installation */ @@ -175,15 +175,15 @@ public GHAppInstallation getInstallationByRepository(String ownerName, String re } /** - * Obtain a user installation associated with this app You must use a JWT to access this endpoint. + * Obtain a user installation associated with this app. + *

+ * You must use a JWT to access this endpoint. * * @param name * user name - * * @return a GHAppInstallation * @throws IOException * on error - * * @see Get a user installation */ @Preview diff --git a/src/main/java/org/kohsuke/github/GHAppCreateTokenBuilder.java b/src/main/java/org/kohsuke/github/GHAppCreateTokenBuilder.java index 8c1ff1b99b..e677e634cb 100644 --- a/src/main/java/org/kohsuke/github/GHAppCreateTokenBuilder.java +++ b/src/main/java/org/kohsuke/github/GHAppCreateTokenBuilder.java @@ -20,7 +20,7 @@ public class GHAppCreateTokenBuilder { @Preview @Deprecated - /* package */ GHAppCreateTokenBuilder(GitHub root, String apiUrlTail, Map permissions) { + GHAppCreateTokenBuilder(GitHub root, String apiUrlTail, Map permissions) { this.root = root; this.apiUrlTail = apiUrlTail; this.builder = new Requester(root); diff --git a/src/main/java/org/kohsuke/github/GHAppInstallation.java b/src/main/java/org/kohsuke/github/GHAppInstallation.java index 1b85dd4c3d..96e2633c08 100644 --- a/src/main/java/org/kohsuke/github/GHAppInstallation.java +++ b/src/main/java/org/kohsuke/github/GHAppInstallation.java @@ -135,7 +135,7 @@ public void setRepositorySelection(GHRepositorySelection repositorySelection) { this.repositorySelection = repositorySelection; } - /* package */ GHAppInstallation wrapUp(GitHub root) { + GHAppInstallation wrapUp(GitHub root) { this.root = root; return this; } diff --git a/src/main/java/org/kohsuke/github/GHAppInstallationToken.java b/src/main/java/org/kohsuke/github/GHAppInstallationToken.java index 2f6daca7bc..992e7ee349 100644 --- a/src/main/java/org/kohsuke/github/GHAppInstallationToken.java +++ b/src/main/java/org/kohsuke/github/GHAppInstallationToken.java @@ -82,7 +82,7 @@ private Object expiresAtStr(Date id, Class type) { return expires_at; } - /* package */ GHAppInstallationToken wrapUp(GitHub root) { + GHAppInstallationToken wrapUp(GitHub root) { this.root = root; return this; } diff --git a/src/main/java/org/kohsuke/github/GHAuthorization.java b/src/main/java/org/kohsuke/github/GHAuthorization.java index cf2664f8d9..033beda0a2 100644 --- a/src/main/java/org/kohsuke/github/GHAuthorization.java +++ b/src/main/java/org/kohsuke/github/GHAuthorization.java @@ -98,7 +98,7 @@ public String getFingerprint() { return fingerprint; } - /* package */ GHAuthorization wrap(GitHub root) { + GHAuthorization wrap(GitHub root) { this.root = root; return this; } diff --git a/src/main/java/org/kohsuke/github/GHBranch.java b/src/main/java/org/kohsuke/github/GHBranch.java index f25a043577..64c62c9d2a 100644 --- a/src/main/java/org/kohsuke/github/GHBranch.java +++ b/src/main/java/org/kohsuke/github/GHBranch.java @@ -123,7 +123,7 @@ public String toString() { return "Branch:" + name + " in " + url; } - /* package */ GHBranch wrap(GHRepository repo) { + GHBranch wrap(GHRepository repo) { this.owner = repo; this.root = repo.root; return this; diff --git a/src/main/java/org/kohsuke/github/GHCommitQueryBuilder.java b/src/main/java/org/kohsuke/github/GHCommitQueryBuilder.java index 442d5a0a01..32d1d964a8 100644 --- a/src/main/java/org/kohsuke/github/GHCommitQueryBuilder.java +++ b/src/main/java/org/kohsuke/github/GHCommitQueryBuilder.java @@ -22,7 +22,7 @@ public class GHCommitQueryBuilder { private final Requester req; private final GHRepository repo; - /* package */ GHCommitQueryBuilder(GHRepository repo) { + GHCommitQueryBuilder(GHRepository repo) { this.repo = repo; this.req = repo.root.retrieve(); // requester to build up } diff --git a/src/main/java/org/kohsuke/github/GHCommitSearchBuilder.java b/src/main/java/org/kohsuke/github/GHCommitSearchBuilder.java index c06ed06daf..5d75afbb3c 100644 --- a/src/main/java/org/kohsuke/github/GHCommitSearchBuilder.java +++ b/src/main/java/org/kohsuke/github/GHCommitSearchBuilder.java @@ -13,7 +13,7 @@ @Preview @Deprecated public class GHCommitSearchBuilder extends GHSearchBuilder { - /* package */ GHCommitSearchBuilder(GitHub root) { + GHCommitSearchBuilder(GitHub root) { super(root, CommitSearchResult.class); req.withPreview(Previews.CLOAK); } @@ -108,7 +108,7 @@ private static class CommitSearchResult extends SearchResult { private GHCommit[] items; @Override - /* package */ GHCommit[] getItems(GitHub root) { + GHCommit[] getItems(GitHub root) { for (GHCommit commit : items) { String repoName = getRepoName(commit.url); try { diff --git a/src/main/java/org/kohsuke/github/GHCommitStatus.java b/src/main/java/org/kohsuke/github/GHCommitStatus.java index b23dbc33b4..148a2a17bc 100644 --- a/src/main/java/org/kohsuke/github/GHCommitStatus.java +++ b/src/main/java/org/kohsuke/github/GHCommitStatus.java @@ -19,7 +19,7 @@ public class GHCommitStatus extends GHObject { private GitHub root; - /* package */ GHCommitStatus wrapUp(GitHub root) { + GHCommitStatus wrapUp(GitHub root) { if (creator != null) creator.wrapUp(root); this.root = root; diff --git a/src/main/java/org/kohsuke/github/GHContentSearchBuilder.java b/src/main/java/org/kohsuke/github/GHContentSearchBuilder.java index ce1f8b00b1..f7438d2bbf 100644 --- a/src/main/java/org/kohsuke/github/GHContentSearchBuilder.java +++ b/src/main/java/org/kohsuke/github/GHContentSearchBuilder.java @@ -7,7 +7,7 @@ * @see GitHub#searchContent() */ public class GHContentSearchBuilder extends GHSearchBuilder { - /* package */ GHContentSearchBuilder(GitHub root) { + GHContentSearchBuilder(GitHub root) { super(root, ContentSearchResult.class); } @@ -59,7 +59,7 @@ private static class ContentSearchResult extends SearchResult { private GHContent[] items; @Override - /* package */ GHContent[] getItems(GitHub root) { + GHContent[] getItems(GitHub root) { for (GHContent item : items) item.wrap(root); return items; diff --git a/src/main/java/org/kohsuke/github/GHCreateRepositoryBuilder.java b/src/main/java/org/kohsuke/github/GHCreateRepositoryBuilder.java index 7c14eb545a..8c33e9efbe 100644 --- a/src/main/java/org/kohsuke/github/GHCreateRepositoryBuilder.java +++ b/src/main/java/org/kohsuke/github/GHCreateRepositoryBuilder.java @@ -13,7 +13,7 @@ public class GHCreateRepositoryBuilder { protected final Requester builder; private final String apiUrlTail; - /* package */ GHCreateRepositoryBuilder(GitHub root, String apiUrlTail, String name) { + GHCreateRepositoryBuilder(GitHub root, String apiUrlTail, String name) { this.root = root; this.apiUrlTail = apiUrlTail; this.builder = new Requester(root); diff --git a/src/main/java/org/kohsuke/github/GHDeploymentStatusBuilder.java b/src/main/java/org/kohsuke/github/GHDeploymentStatusBuilder.java index 4229709040..c842c8ddd1 100644 --- a/src/main/java/org/kohsuke/github/GHDeploymentStatusBuilder.java +++ b/src/main/java/org/kohsuke/github/GHDeploymentStatusBuilder.java @@ -19,7 +19,7 @@ public GHDeploymentStatusBuilder(GHRepository repo, int deploymentId, GHDeployme this(repo, (long) deploymentId, state); } - /* package */ GHDeploymentStatusBuilder(GHRepository repo, long deploymentId, GHDeploymentState state) { + GHDeploymentStatusBuilder(GHRepository repo, long deploymentId, GHDeploymentState state) { this.repo = repo; this.deploymentId = deploymentId; this.builder = new Requester(repo.root); diff --git a/src/main/java/org/kohsuke/github/GHEventInfo.java b/src/main/java/org/kohsuke/github/GHEventInfo.java index 9f79dd2956..4e139c94d0 100644 --- a/src/main/java/org/kohsuke/github/GHEventInfo.java +++ b/src/main/java/org/kohsuke/github/GHEventInfo.java @@ -51,7 +51,7 @@ public GHEvent getType() { return null; // unknown event type } - /* package */ GHEventInfo wrapUp(GitHub root) { + GHEventInfo wrapUp(GitHub root) { this.root = root; return this; } diff --git a/src/main/java/org/kohsuke/github/GHEventPayload.java b/src/main/java/org/kohsuke/github/GHEventPayload.java index 286a6e91ee..01b29c88e8 100644 --- a/src/main/java/org/kohsuke/github/GHEventPayload.java +++ b/src/main/java/org/kohsuke/github/GHEventPayload.java @@ -19,7 +19,7 @@ public abstract class GHEventPayload { private GHUser sender; - /* package */ GHEventPayload() { + GHEventPayload() { } /** @@ -35,7 +35,7 @@ public void setSender(GHUser sender) { this.sender = sender; } - /* package */ void wrapUp(GitHub root) { + void wrapUp(GitHub root) { this.root = root; if (sender != null) { sender.wrapUp(root); diff --git a/src/main/java/org/kohsuke/github/GHGist.java b/src/main/java/org/kohsuke/github/GHGist.java index 9784ff1aad..c8681f5c0f 100644 --- a/src/main/java/org/kohsuke/github/GHGist.java +++ b/src/main/java/org/kohsuke/github/GHGist.java @@ -93,7 +93,7 @@ public Map getFiles() { return Collections.unmodifiableMap(files); } - /* package */ GHGist wrapUp(GHUser owner) { + GHGist wrapUp(GHUser owner) { this.owner = owner; this.root = owner.root; wrapUp(); @@ -104,7 +104,7 @@ public Map getFiles() { * Used when caller obtains {@link GHGist} without knowing its owner. A partially constructed owner object is * interned. */ - /* package */ GHGist wrapUp(GitHub root) { + GHGist wrapUp(GitHub root) { this.owner = root.getUser(owner); this.root = root; wrapUp(); diff --git a/src/main/java/org/kohsuke/github/GHInvitation.java b/src/main/java/org/kohsuke/github/GHInvitation.java index 3e9a4b3caf..5db4eb4282 100644 --- a/src/main/java/org/kohsuke/github/GHInvitation.java +++ b/src/main/java/org/kohsuke/github/GHInvitation.java @@ -20,7 +20,7 @@ public class GHInvitation extends GHObject { private String permissions; private String html_url; - /* package */ GHInvitation wrapUp(GitHub root) { + GHInvitation wrapUp(GitHub root) { this.root = root; return this; } diff --git a/src/main/java/org/kohsuke/github/GHIssue.java b/src/main/java/org/kohsuke/github/GHIssue.java index db3d907bd1..dfd8102372 100644 --- a/src/main/java/org/kohsuke/github/GHIssue.java +++ b/src/main/java/org/kohsuke/github/GHIssue.java @@ -79,14 +79,14 @@ public class GHIssue extends GHObject implements Reactable { public static class Label extends GHLabel { } - /* package */ GHIssue wrap(GHRepository owner) { + GHIssue wrap(GHRepository owner) { this.owner = owner; if (milestone != null) milestone.wrap(owner); return wrap(owner.root); } - /* package */ GHIssue wrap(GitHub root) { + GHIssue wrap(GitHub root) { this.root = root; if (assignee != null) assignee.wrapUp(root); @@ -99,7 +99,7 @@ public static class Label extends GHLabel { return this; } - /* package */ static GHIssue[] wrap(GHIssue[] issues, GHRepository owner) { + static GHIssue[] wrap(GHIssue[] issues, GHRepository owner) { for (GHIssue i : issues) i.wrap(owner); return issues; diff --git a/src/main/java/org/kohsuke/github/GHIssueComment.java b/src/main/java/org/kohsuke/github/GHIssueComment.java index 507b5fc4d0..cddc2e02f5 100644 --- a/src/main/java/org/kohsuke/github/GHIssueComment.java +++ b/src/main/java/org/kohsuke/github/GHIssueComment.java @@ -41,7 +41,7 @@ public class GHIssueComment extends GHObject implements Reactable { private String body, gravatar_id, html_url, author_association; private GHUser user; // not fully populated. beware. - /* package */ GHIssueComment wrapUp(GHIssue owner) { + GHIssueComment wrapUp(GHIssue owner) { this.owner = owner; return this; } diff --git a/src/main/java/org/kohsuke/github/GHIssueSearchBuilder.java b/src/main/java/org/kohsuke/github/GHIssueSearchBuilder.java index 1a7db203f2..49c58aff3a 100644 --- a/src/main/java/org/kohsuke/github/GHIssueSearchBuilder.java +++ b/src/main/java/org/kohsuke/github/GHIssueSearchBuilder.java @@ -7,7 +7,7 @@ * @see GitHub#searchIssues() */ public class GHIssueSearchBuilder extends GHSearchBuilder { - /* package */ GHIssueSearchBuilder(GitHub root) { + GHIssueSearchBuilder(GitHub root) { super(root, IssueSearchResult.class); } @@ -57,7 +57,7 @@ private static class IssueSearchResult extends SearchResult { private GHIssue[] items; @Override - /* package */ GHIssue[] getItems(GitHub root) { + GHIssue[] getItems(GitHub root) { for (GHIssue i : items) i.wrap(root); return items; diff --git a/src/main/java/org/kohsuke/github/GHKey.java b/src/main/java/org/kohsuke/github/GHKey.java index 88253eed2a..8d46b34f68 100644 --- a/src/main/java/org/kohsuke/github/GHKey.java +++ b/src/main/java/org/kohsuke/github/GHKey.java @@ -43,7 +43,7 @@ public boolean isVerified() { return verified; } - /* package */ GHKey wrap(GitHub root) { + GHKey wrap(GitHub root) { this.root = root; return this; } diff --git a/src/main/java/org/kohsuke/github/GHLabel.java b/src/main/java/org/kohsuke/github/GHLabel.java index 92f896ec2d..fd737e3d8a 100644 --- a/src/main/java/org/kohsuke/github/GHLabel.java +++ b/src/main/java/org/kohsuke/github/GHLabel.java @@ -41,7 +41,7 @@ public String getDescription() { return description; } - /* package */ GHLabel wrapUp(GHRepository repo) { + GHLabel wrapUp(GHRepository repo) { this.repo = repo; return this; } @@ -70,7 +70,7 @@ public void setDescription(String newDescription) throws IOException { .with("description", newDescription).to(url); } - /* package */ static Collection toNames(Collection labels) { + static Collection toNames(Collection labels) { List r = new ArrayList(); for (GHLabel l : labels) { r.add(l.getName()); diff --git a/src/main/java/org/kohsuke/github/GHLicense.java b/src/main/java/org/kohsuke/github/GHLicense.java index 8eb4a69d3a..1cfba97fea 100644 --- a/src/main/java/org/kohsuke/github/GHLicense.java +++ b/src/main/java/org/kohsuke/github/GHLicense.java @@ -160,7 +160,7 @@ public int hashCode() { return url.hashCode(); } - /* package */ GHLicense wrap(GitHub root) { + GHLicense wrap(GitHub root) { this.root = root; return this; } diff --git a/src/main/java/org/kohsuke/github/GHMembership.java b/src/main/java/org/kohsuke/github/GHMembership.java index 5df8f9d44a..d5e29ea016 100644 --- a/src/main/java/org/kohsuke/github/GHMembership.java +++ b/src/main/java/org/kohsuke/github/GHMembership.java @@ -48,7 +48,7 @@ public void activate() throws IOException { root.retrieve().method("PATCH").with("state", State.ACTIVE).to(url, this); } - /* package */ GHMembership wrap(GitHub root) { + GHMembership wrap(GitHub root) { this.root = root; if (user != null) user = root.getUser(user.wrapUp(root)); @@ -57,7 +57,7 @@ public void activate() throws IOException { return this; } - /* package */ static void wrap(GHMembership[] page, GitHub root) { + static void wrap(GHMembership[] page, GitHub root) { for (GHMembership m : page) m.wrap(root); } diff --git a/src/main/java/org/kohsuke/github/GHNotificationStream.java b/src/main/java/org/kohsuke/github/GHNotificationStream.java index 969759ea4d..4a8e733193 100644 --- a/src/main/java/org/kohsuke/github/GHNotificationStream.java +++ b/src/main/java/org/kohsuke/github/GHNotificationStream.java @@ -31,7 +31,7 @@ public class GHNotificationStream implements Iterable { private String apiUrl; private boolean nonBlocking = false; - /* package */ GHNotificationStream(GitHub root, String apiUrl) { + GHNotificationStream(GitHub root, String apiUrl) { this.root = root; this.apiUrl = apiUrl; } diff --git a/src/main/java/org/kohsuke/github/GHObject.java b/src/main/java/org/kohsuke/github/GHObject.java index 849ecd57b7..4251162253 100644 --- a/src/main/java/org/kohsuke/github/GHObject.java +++ b/src/main/java/org/kohsuke/github/GHObject.java @@ -29,7 +29,7 @@ public abstract class GHObject { protected String created_at; protected String updated_at; - /* package */ GHObject() { + GHObject() { } /** diff --git a/src/main/java/org/kohsuke/github/GHOrgHook.java b/src/main/java/org/kohsuke/github/GHOrgHook.java index 0afd713031..d13f766401 100644 --- a/src/main/java/org/kohsuke/github/GHOrgHook.java +++ b/src/main/java/org/kohsuke/github/GHOrgHook.java @@ -8,9 +8,9 @@ class GHOrgHook extends GHHook { /** * Organization that the hook belongs to. */ - /* package */ transient GHOrganization organization; + transient GHOrganization organization; - /* package */ GHOrgHook wrap(GHOrganization owner) { + GHOrgHook wrap(GHOrganization owner) { this.organization = owner; return this; } diff --git a/src/main/java/org/kohsuke/github/GHOrganization.java b/src/main/java/org/kohsuke/github/GHOrganization.java index 7dc7ea1649..a2366136d2 100644 --- a/src/main/java/org/kohsuke/github/GHOrganization.java +++ b/src/main/java/org/kohsuke/github/GHOrganization.java @@ -15,7 +15,7 @@ * @author Kohsuke Kawaguchi */ public class GHOrganization extends GHPerson { - /* package */ GHOrganization wrapUp(GitHub root) { + GHOrganization wrapUp(GitHub root) { return (GHOrganization) super.wrapUp(root); } diff --git a/src/main/java/org/kohsuke/github/GHPermission.java b/src/main/java/org/kohsuke/github/GHPermission.java index cf81c03d5b..2f97576e6e 100644 --- a/src/main/java/org/kohsuke/github/GHPermission.java +++ b/src/main/java/org/kohsuke/github/GHPermission.java @@ -31,7 +31,7 @@ * * @see API */ -/* package */ class GHPermission { +class GHPermission { private String permission; private GHUser user; diff --git a/src/main/java/org/kohsuke/github/GHPerson.java b/src/main/java/org/kohsuke/github/GHPerson.java index bbb3a60ac8..d93d6f9f49 100644 --- a/src/main/java/org/kohsuke/github/GHPerson.java +++ b/src/main/java/org/kohsuke/github/GHPerson.java @@ -27,7 +27,7 @@ public abstract class GHPerson extends GHObject { protected String html_url; protected int followers, following, public_repos, public_gists; - /* package */ GHPerson wrapUp(GitHub root) { + GHPerson wrapUp(GitHub root) { this.root = root; return this; } diff --git a/src/main/java/org/kohsuke/github/GHPullRequestCommitDetail.java b/src/main/java/org/kohsuke/github/GHPullRequestCommitDetail.java index 4767162abd..cc2311e1d1 100644 --- a/src/main/java/org/kohsuke/github/GHPullRequestCommitDetail.java +++ b/src/main/java/org/kohsuke/github/GHPullRequestCommitDetail.java @@ -39,7 +39,7 @@ public class GHPullRequestCommitDetail { private GHPullRequest owner; - /* package */ void wrapUp(GHPullRequest owner) { + void wrapUp(GHPullRequest owner) { this.owner = owner; } diff --git a/src/main/java/org/kohsuke/github/GHPullRequestQueryBuilder.java b/src/main/java/org/kohsuke/github/GHPullRequestQueryBuilder.java index dc09ef4c65..10d1bc2761 100644 --- a/src/main/java/org/kohsuke/github/GHPullRequestQueryBuilder.java +++ b/src/main/java/org/kohsuke/github/GHPullRequestQueryBuilder.java @@ -11,7 +11,7 @@ public class GHPullRequestQueryBuilder extends GHQueryBuilder { private final GHRepository repo; - /* package */ GHPullRequestQueryBuilder(GHRepository repo) { + GHPullRequestQueryBuilder(GHRepository repo) { super(repo.root); this.repo = repo; } diff --git a/src/main/java/org/kohsuke/github/GHPullRequestReview.java b/src/main/java/org/kohsuke/github/GHPullRequestReview.java index 7896b3fc2f..9ea06dd2bb 100644 --- a/src/main/java/org/kohsuke/github/GHPullRequestReview.java +++ b/src/main/java/org/kohsuke/github/GHPullRequestReview.java @@ -46,7 +46,7 @@ public class GHPullRequestReview extends GHObject { private GHPullRequestReviewState state; private String submitted_at; - /* package */ GHPullRequestReview wrapUp(GHPullRequest owner) { + GHPullRequestReview wrapUp(GHPullRequest owner) { this.owner = owner; return this; } diff --git a/src/main/java/org/kohsuke/github/GHPullRequestReviewBuilder.java b/src/main/java/org/kohsuke/github/GHPullRequestReviewBuilder.java index 543faba9fb..4649d1f1f3 100644 --- a/src/main/java/org/kohsuke/github/GHPullRequestReviewBuilder.java +++ b/src/main/java/org/kohsuke/github/GHPullRequestReviewBuilder.java @@ -15,7 +15,7 @@ public class GHPullRequestReviewBuilder { private final Requester builder; private final List comments = new ArrayList(); - /* package */ GHPullRequestReviewBuilder(GHPullRequest pr) { + GHPullRequestReviewBuilder(GHPullRequest pr) { this.pr = pr; this.builder = new Requester(pr.root); } diff --git a/src/main/java/org/kohsuke/github/GHPullRequestReviewComment.java b/src/main/java/org/kohsuke/github/GHPullRequestReviewComment.java index 89cb33c701..1804d47e93 100644 --- a/src/main/java/org/kohsuke/github/GHPullRequestReviewComment.java +++ b/src/main/java/org/kohsuke/github/GHPullRequestReviewComment.java @@ -57,7 +57,7 @@ public static GHPullRequestReviewComment draft(String body, String path, int pos return result; } - /* package */ GHPullRequestReviewComment wrapUp(GHPullRequest owner) { + GHPullRequestReviewComment wrapUp(GHPullRequest owner) { this.owner = owner; return this; } diff --git a/src/main/java/org/kohsuke/github/GHPullRequestReviewEvent.java b/src/main/java/org/kohsuke/github/GHPullRequestReviewEvent.java index 1bf4c954a0..3bcea3311f 100644 --- a/src/main/java/org/kohsuke/github/GHPullRequestReviewEvent.java +++ b/src/main/java/org/kohsuke/github/GHPullRequestReviewEvent.java @@ -29,14 +29,14 @@ public enum GHPullRequestReviewEvent { PENDING, APPROVE, REQUEST_CHANGES, COMMENT; - /* package */ String action() { + String action() { return this == PENDING ? null : name(); } /** * When a {@link GHPullRequestReview} is submitted with this event, it should transition to this state. */ - /* package */ GHPullRequestReviewState toState() { + GHPullRequestReviewState toState() { switch (this) { case PENDING: return GHPullRequestReviewState.PENDING; diff --git a/src/main/java/org/kohsuke/github/GHPullRequestReviewState.java b/src/main/java/org/kohsuke/github/GHPullRequestReviewState.java index f79497bc65..5f1c0c06e3 100644 --- a/src/main/java/org/kohsuke/github/GHPullRequestReviewState.java +++ b/src/main/java/org/kohsuke/github/GHPullRequestReviewState.java @@ -19,7 +19,7 @@ public String action() { return e == null ? null : e.action(); } - /* package */ GHPullRequestReviewEvent toEvent() { + GHPullRequestReviewEvent toEvent() { switch (this) { case PENDING: return GHPullRequestReviewEvent.PENDING; diff --git a/src/main/java/org/kohsuke/github/GHQueryBuilder.java b/src/main/java/org/kohsuke/github/GHQueryBuilder.java index ac8e87619e..bf26fa567e 100644 --- a/src/main/java/org/kohsuke/github/GHQueryBuilder.java +++ b/src/main/java/org/kohsuke/github/GHQueryBuilder.java @@ -9,7 +9,7 @@ public abstract class GHQueryBuilder { protected final GitHub root; protected final Requester req; - /* package */ GHQueryBuilder(GitHub root) { + GHQueryBuilder(GitHub root) { this.root = root; this.req = root.retrieve(); } diff --git a/src/main/java/org/kohsuke/github/GHReaction.java b/src/main/java/org/kohsuke/github/GHReaction.java index 6cb46c03fc..e809516cac 100644 --- a/src/main/java/org/kohsuke/github/GHReaction.java +++ b/src/main/java/org/kohsuke/github/GHReaction.java @@ -19,7 +19,7 @@ public class GHReaction extends GHObject { private GHUser user; private ReactionContent content; - /* package */ GHReaction wrap(GitHub root) { + GHReaction wrap(GitHub root) { this.root = root; user.wrapUp(root); return this; diff --git a/src/main/java/org/kohsuke/github/GHRef.java b/src/main/java/org/kohsuke/github/GHRef.java index 83d319bbb8..f8ff997512 100644 --- a/src/main/java/org/kohsuke/github/GHRef.java +++ b/src/main/java/org/kohsuke/github/GHRef.java @@ -66,12 +66,12 @@ public void delete() throws IOException { new Requester(root).method("DELETE").to(url); } - /* package */ GHRef wrap(GitHub root) { + GHRef wrap(GitHub root) { this.root = root; return this; } - /* package */ static GHRef[] wrap(GHRef[] in, GitHub root) { + static GHRef[] wrap(GHRef[] in, GitHub root) { for (GHRef r : in) { r.wrap(root); } diff --git a/src/main/java/org/kohsuke/github/GHRepoHook.java b/src/main/java/org/kohsuke/github/GHRepoHook.java index e5990de346..d273168f42 100644 --- a/src/main/java/org/kohsuke/github/GHRepoHook.java +++ b/src/main/java/org/kohsuke/github/GHRepoHook.java @@ -4,9 +4,9 @@ class GHRepoHook extends GHHook { /** * Repository that the hook belongs to. */ - /* package */ transient GHRepository repository; + transient GHRepository repository; - /* package */ GHRepoHook wrap(GHRepository owner) { + GHRepoHook wrap(GHRepository owner) { this.repository = owner; return this; } diff --git a/src/main/java/org/kohsuke/github/GHRepository.java b/src/main/java/org/kohsuke/github/GHRepository.java index 08460cb041..2565c30f85 100644 --- a/src/main/java/org/kohsuke/github/GHRepository.java +++ b/src/main/java/org/kohsuke/github/GHRepository.java @@ -1320,7 +1320,7 @@ public boolean remove(Object url) { } }; - /* package */ GHRepository wrap(GitHub root) { + GHRepository wrap(GitHub root) { this.root = root; if (root.isOffline()) { owner.wrapUp(root); diff --git a/src/main/java/org/kohsuke/github/GHRepositoryCloneTraffic.java b/src/main/java/org/kohsuke/github/GHRepositoryCloneTraffic.java index f8628687be..f7f4f1f7f8 100644 --- a/src/main/java/org/kohsuke/github/GHRepositoryCloneTraffic.java +++ b/src/main/java/org/kohsuke/github/GHRepositoryCloneTraffic.java @@ -10,10 +10,10 @@ public class GHRepositoryCloneTraffic extends GHRepositoryTraffic { private List clones; - /* package */ GHRepositoryCloneTraffic() { + GHRepositoryCloneTraffic() { } - /* package */ GHRepositoryCloneTraffic(Integer count, Integer uniques, List clones) { + GHRepositoryCloneTraffic(Integer count, Integer uniques, List clones) { super(count, uniques); this.clones = clones; } @@ -27,10 +27,10 @@ public List getDailyInfo() { } public static class DailyInfo extends GHRepositoryTraffic.DailyInfo { - /* package */ DailyInfo() { + DailyInfo() { } - /* package */ DailyInfo(String timestamp, int count, int uniques) { + DailyInfo(String timestamp, int count, int uniques) { super(timestamp, count, uniques); } } diff --git a/src/main/java/org/kohsuke/github/GHRepositorySearchBuilder.java b/src/main/java/org/kohsuke/github/GHRepositorySearchBuilder.java index 296007225a..c60a610fdf 100644 --- a/src/main/java/org/kohsuke/github/GHRepositorySearchBuilder.java +++ b/src/main/java/org/kohsuke/github/GHRepositorySearchBuilder.java @@ -7,7 +7,7 @@ * @see GitHub#searchRepositories() */ public class GHRepositorySearchBuilder extends GHSearchBuilder { - /* package */ GHRepositorySearchBuilder(GitHub root) { + GHRepositorySearchBuilder(GitHub root) { super(root, RepositorySearchResult.class); } @@ -77,7 +77,7 @@ private static class RepositorySearchResult extends SearchResult { private GHRepository[] items; @Override - /* package */ GHRepository[] getItems(GitHub root) { + GHRepository[] getItems(GitHub root) { for (GHRepository item : items) item.wrap(root); return items; diff --git a/src/main/java/org/kohsuke/github/GHRepositoryStatistics.java b/src/main/java/org/kohsuke/github/GHRepositoryStatistics.java index f925a63c98..2371dacf8f 100644 --- a/src/main/java/org/kohsuke/github/GHRepositoryStatistics.java +++ b/src/main/java/org/kohsuke/github/GHRepositoryStatistics.java @@ -178,7 +178,7 @@ public String toString() { } } - /* package */ ContributorStats wrapUp(GitHub root) { + ContributorStats wrapUp(GitHub root) { this.root = root; return this; } @@ -222,7 +222,7 @@ public long getWeek() { return week; } - /* package */ CommitActivity wrapUp(GitHub root) { + CommitActivity wrapUp(GitHub root) { this.root = root; return this; } @@ -345,7 +345,7 @@ public List getOwnerCommits() { return owner; } - /* package */ Participation wrapUp(GitHub root) { + Participation wrapUp(GitHub root) { this.root = root; return this; } diff --git a/src/main/java/org/kohsuke/github/GHRepositoryTraffic.java b/src/main/java/org/kohsuke/github/GHRepositoryTraffic.java index 198e660338..8efb74083c 100644 --- a/src/main/java/org/kohsuke/github/GHRepositoryTraffic.java +++ b/src/main/java/org/kohsuke/github/GHRepositoryTraffic.java @@ -7,10 +7,10 @@ public abstract class GHRepositoryTraffic implements TrafficInfo { private int count; private int uniques; - /* package */ GHRepositoryTraffic() { + GHRepositoryTraffic() { } - /* package */ GHRepositoryTraffic(int count, int uniques) { + GHRepositoryTraffic(int count, int uniques) { this.count = count; this.uniques = uniques; } @@ -42,10 +42,10 @@ public int getUniques() { return uniques; } - /* package */ DailyInfo() { + DailyInfo() { } - /* package */ DailyInfo(String timestamp, Integer count, Integer uniques) { + DailyInfo(String timestamp, Integer count, Integer uniques) { this.timestamp = timestamp; this.count = count; this.uniques = uniques; diff --git a/src/main/java/org/kohsuke/github/GHRepositoryViewTraffic.java b/src/main/java/org/kohsuke/github/GHRepositoryViewTraffic.java index 452bfc594a..1f897baf49 100644 --- a/src/main/java/org/kohsuke/github/GHRepositoryViewTraffic.java +++ b/src/main/java/org/kohsuke/github/GHRepositoryViewTraffic.java @@ -10,10 +10,10 @@ public class GHRepositoryViewTraffic extends GHRepositoryTraffic { private List views; - /* package */ GHRepositoryViewTraffic() { + GHRepositoryViewTraffic() { } - /* package */ GHRepositoryViewTraffic(int count, int uniques, List views) { + GHRepositoryViewTraffic(int count, int uniques, List views) { super(count, uniques); this.views = views; } @@ -27,10 +27,10 @@ public List getDailyInfo() { } public static class DailyInfo extends GHRepositoryTraffic.DailyInfo { - /* package */ DailyInfo() { + DailyInfo() { } - /* package */ DailyInfo(String timestamp, int count, int uniques) { + DailyInfo(String timestamp, int count, int uniques) { super(timestamp, count, uniques); } } diff --git a/src/main/java/org/kohsuke/github/GHSearchBuilder.java b/src/main/java/org/kohsuke/github/GHSearchBuilder.java index a872bf1912..17a035b2aa 100644 --- a/src/main/java/org/kohsuke/github/GHSearchBuilder.java +++ b/src/main/java/org/kohsuke/github/GHSearchBuilder.java @@ -18,7 +18,7 @@ public abstract class GHSearchBuilder extends GHQueryBuilder { */ private final Class> receiverType; - /* package */ GHSearchBuilder(GitHub root, Class> receiverType) { + GHSearchBuilder(GitHub root, Class> receiverType) { super(root); this.receiverType = receiverType; } diff --git a/src/main/java/org/kohsuke/github/GHTag.java b/src/main/java/org/kohsuke/github/GHTag.java index 72eba8f953..2f57031077 100644 --- a/src/main/java/org/kohsuke/github/GHTag.java +++ b/src/main/java/org/kohsuke/github/GHTag.java @@ -16,7 +16,7 @@ public class GHTag { private String name; private GHCommit commit; - /* package */ GHTag wrap(GHRepository owner) { + GHTag wrap(GHRepository owner) { this.owner = owner; this.root = owner.root; if (commit != null) diff --git a/src/main/java/org/kohsuke/github/GHTagObject.java b/src/main/java/org/kohsuke/github/GHTagObject.java index db42f77970..cafe4ceacf 100644 --- a/src/main/java/org/kohsuke/github/GHTagObject.java +++ b/src/main/java/org/kohsuke/github/GHTagObject.java @@ -20,7 +20,7 @@ public class GHTagObject { private GitUser tagger; private GHRef.GHObject object; - /* package */ GHTagObject wrap(GHRepository owner) { + GHTagObject wrap(GHRepository owner) { this.owner = owner; this.root = owner.root; return this; diff --git a/src/main/java/org/kohsuke/github/GHTeam.java b/src/main/java/org/kohsuke/github/GHTeam.java index 2c4382d38d..49e66a6d57 100644 --- a/src/main/java/org/kohsuke/github/GHTeam.java +++ b/src/main/java/org/kohsuke/github/GHTeam.java @@ -31,25 +31,25 @@ public enum Role { MAINTAINER } - /* package */ GHTeam wrapUp(GHOrganization owner) { + GHTeam wrapUp(GHOrganization owner) { this.organization = owner; this.root = owner.root; return this; } - /* package */ GHTeam wrapUp(GitHub root) { // auto-wrapUp when organization is known from GET /user/teams + GHTeam wrapUp(GitHub root) { // auto-wrapUp when organization is known from GET /user/teams this.organization.wrapUp(root); return wrapUp(organization); } - /* package */ static GHTeam[] wrapUp(GHTeam[] teams, GHOrganization owner) { + static GHTeam[] wrapUp(GHTeam[] teams, GHOrganization owner) { for (GHTeam t : teams) { t.wrapUp(owner); } return teams; } - /* package */ static GHTeam[] wrapUp(GHTeam[] teams, GHPullRequest owner) { + static GHTeam[] wrapUp(GHTeam[] teams, GHPullRequest owner) { for (GHTeam t : teams) { t.root = owner.root; } diff --git a/src/main/java/org/kohsuke/github/GHThread.java b/src/main/java/org/kohsuke/github/GHThread.java index 1d94dfd8e8..1375d6680e 100644 --- a/src/main/java/org/kohsuke/github/GHThread.java +++ b/src/main/java/org/kohsuke/github/GHThread.java @@ -109,7 +109,7 @@ public GHCommit getBoundCommit() throws IOException { return repository.getCommit(subject.url.substring(subject.url.lastIndexOf('/') + 1)); } - /* package */ GHThread wrap(GitHub root) { + GHThread wrap(GitHub root) { this.root = root; if (this.repository != null) this.repository.wrap(root); diff --git a/src/main/java/org/kohsuke/github/GHTree.java b/src/main/java/org/kohsuke/github/GHTree.java index 78a11a15ee..7981d55f73 100644 --- a/src/main/java/org/kohsuke/github/GHTree.java +++ b/src/main/java/org/kohsuke/github/GHTree.java @@ -64,7 +64,7 @@ public URL getUrl() { return GitHub.parseURL(url); } - /* package */GHTree wrap(GHRepository repo) { + GHTree wrap(GHRepository repo) { this.repo = repo; for (GHTreeEntry e : tree) { e.tree = this; diff --git a/src/main/java/org/kohsuke/github/GHUser.java b/src/main/java/org/kohsuke/github/GHUser.java index 1090642f95..7e46c096f4 100644 --- a/src/main/java/org/kohsuke/github/GHUser.java +++ b/src/main/java/org/kohsuke/github/GHUser.java @@ -128,7 +128,7 @@ public boolean isPublicMemberOf(GHOrganization org) { return org.hasPublicMember(this); } - /* package */ static GHUser[] wrap(GHUser[] users, GitHub root) { + static GHUser[] wrap(GHUser[] users, GitHub root) { for (GHUser f : users) f.root = root; return users; @@ -184,7 +184,7 @@ String getApiTailUrl(String tail) { return "/users/" + login + tail; } - /* package */ GHUser wrapUp(GitHub root) { + GHUser wrapUp(GitHub root) { super.wrapUp(root); return this; } diff --git a/src/main/java/org/kohsuke/github/GHUserSearchBuilder.java b/src/main/java/org/kohsuke/github/GHUserSearchBuilder.java index 15c4aab203..c2c2d61eeb 100644 --- a/src/main/java/org/kohsuke/github/GHUserSearchBuilder.java +++ b/src/main/java/org/kohsuke/github/GHUserSearchBuilder.java @@ -7,7 +7,7 @@ * @see GitHub#searchUsers() */ public class GHUserSearchBuilder extends GHSearchBuilder { - /* package */ GHUserSearchBuilder(GitHub root) { + GHUserSearchBuilder(GitHub root) { super(root, UserSearchResult.class); } @@ -65,7 +65,7 @@ private static class UserSearchResult extends SearchResult { private GHUser[] items; @Override - /* package */ GHUser[] getItems(GitHub root) { + GHUser[] getItems(GitHub root) { return GHUser.wrap(items, root); } } diff --git a/src/main/java/org/kohsuke/github/GitHub.java b/src/main/java/org/kohsuke/github/GitHub.java index dc3debcfc2..e1bd982d42 100644 --- a/src/main/java/org/kohsuke/github/GitHub.java +++ b/src/main/java/org/kohsuke/github/GitHub.java @@ -67,12 +67,12 @@ * @author Kohsuke Kawaguchi */ public class GitHub { - /* package */ final String login; + final String login; /** * Value of the authorization header to be sent with the request. */ - /* package */ final String encodedAuthorization; + final String encodedAuthorization; private final ConcurrentMap users; private final ConcurrentMap orgs; @@ -80,8 +80,8 @@ public class GitHub { private GHMyself myself; private final String apiUrl; - /* package */ final RateLimitHandler rateLimitHandler; - /* package */ final AbuseLimitHandler abuseLimitHandler; + final RateLimitHandler rateLimitHandler; + final AbuseLimitHandler abuseLimitHandler; private HttpConnector connector = HttpConnector.DEFAULT; @@ -130,7 +130,7 @@ public class GitHub { * @param connector * HttpConnector to use. Pass null to use default connector. */ - /* package */ GitHub(String apiUrl, String login, String oauthAccessToken, String jwtToken, String password, + GitHub(String apiUrl, String login, String oauthAccessToken, String jwtToken, String password, HttpConnector connector, RateLimitHandler rateLimitHandler, AbuseLimitHandler abuseLimitHandler) throws IOException { if (apiUrl.endsWith("/")) @@ -297,13 +297,13 @@ public void setConnector(HttpConnector connector) { this.connector = connector; } - /* package */ void requireCredential() { + void requireCredential() { if (isAnonymous()) throw new IllegalStateException( "This operation requires a credential but none is given to the GitHub constructor"); } - /* package */ URL getApiURL(String tailApiUrl) throws IOException { + URL getApiURL(String tailApiUrl) throws IOException { if (tailApiUrl.startsWith("/")) { if ("github.com".equals(apiUrl)) {// backward compatibility return new URL(GITHUB_URL + tailApiUrl); @@ -315,7 +315,7 @@ public void setConnector(HttpConnector connector) { } } - /* package */ Requester retrieve() { + Requester retrieve() { return new Requester(this).method("GET"); } @@ -802,7 +802,7 @@ public boolean isCredentialValid() { } } - /* package */ GHUser intern(GHUser user) throws IOException { + GHUser intern(GHUser user) throws IOException { if (user == null) return user; @@ -988,7 +988,7 @@ public Reader renderMarkdown(String text) throws IOException { .contentType("text/plain;charset=UTF-8").asStream("/markdown/raw"), "UTF-8"); } - /* package */ static URL parseURL(String s) { + static URL parseURL(String s) { try { return s == null ? null : new URL(s); } catch (MalformedURLException e) { @@ -996,7 +996,7 @@ public Reader renderMarkdown(String text) throws IOException { } } - /* package */ static Date parseDate(String timestamp) { + static Date parseDate(String timestamp) { if (timestamp == null) return null; for (String f : TIME_FORMATS) { @@ -1011,13 +1011,13 @@ public Reader renderMarkdown(String text) throws IOException { throw new IllegalStateException("Unable to parse the timestamp: " + timestamp); } - /* package */ static String printDate(Date dt) { + static String printDate(Date dt) { SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'"); df.setTimeZone(TimeZone.getTimeZone("GMT")); return df.format(dt); } - /* package */ static final ObjectMapper MAPPER = new ObjectMapper(); + static final ObjectMapper MAPPER = new ObjectMapper(); private static final String[] TIME_FORMATS = { "yyyy/MM/dd HH:mm:ss ZZZZ", "yyyy-MM-dd'T'HH:mm:ss'Z'", "yyyy-MM-dd'T'HH:mm:ss.S'Z'" // GitHub App endpoints return a different date format @@ -1029,7 +1029,7 @@ public Reader renderMarkdown(String text) throws IOException { MAPPER.configure(MapperFeature.ACCEPT_CASE_INSENSITIVE_ENUMS, true); } - /* package */ static final String GITHUB_URL = "https://api.github.com"; + static final String GITHUB_URL = "https://api.github.com"; private static final Logger LOGGER = Logger.getLogger(GitHub.class.getName()); } diff --git a/src/main/java/org/kohsuke/github/PagedIterator.java b/src/main/java/org/kohsuke/github/PagedIterator.java index 7c8f520dda..28b2360b3d 100644 --- a/src/main/java/org/kohsuke/github/PagedIterator.java +++ b/src/main/java/org/kohsuke/github/PagedIterator.java @@ -22,7 +22,7 @@ public abstract class PagedIterator implements Iterator { private T[] current; private int pos; - /* package */ PagedIterator(Iterator base) { + PagedIterator(Iterator base) { this.base = base; } diff --git a/src/main/java/org/kohsuke/github/PagedSearchIterable.java b/src/main/java/org/kohsuke/github/PagedSearchIterable.java index 65a9cab17a..974cf46762 100644 --- a/src/main/java/org/kohsuke/github/PagedSearchIterable.java +++ b/src/main/java/org/kohsuke/github/PagedSearchIterable.java @@ -19,7 +19,7 @@ public abstract class PagedSearchIterable extends PagedIterable { */ private SearchResult result; - /* package */ PagedSearchIterable(GitHub root) { + PagedSearchIterable(GitHub root) { this.root = root; } diff --git a/src/main/java/org/kohsuke/github/Previews.java b/src/main/java/org/kohsuke/github/Previews.java index 809e69ecf6..2468ac94cb 100644 --- a/src/main/java/org/kohsuke/github/Previews.java +++ b/src/main/java/org/kohsuke/github/Previews.java @@ -7,7 +7,7 @@ * * @author Kohsuke Kawaguchi */ -/* package */ class Previews { +class Previews { /** * Commit Search diff --git a/src/main/java/org/kohsuke/github/Requester.java b/src/main/java/org/kohsuke/github/Requester.java index f14d6681a8..5513345ff7 100644 --- a/src/main/java/org/kohsuke/github/Requester.java +++ b/src/main/java/org/kohsuke/github/Requester.java @@ -117,7 +117,7 @@ public Requester withHeader(String name, String value) { return this; } - /* package */ Requester withPreview(String name) { + Requester withPreview(String name) { return withHeader("Accept", name); } @@ -232,7 +232,7 @@ public Requester contentType(String contentType) { * Normally whether parameters go as query parameters or a body depends on the HTTP verb in use, but this method * forces the parameters to be sent as a body. */ - /* package */ Requester inBody() { + Requester inBody() { forceBody = true; return this; } @@ -443,7 +443,7 @@ private boolean isMethodWithBody() { return forceBody || !METHODS_WITHOUT_BODY.contains(method); } - /* package */ PagedIterable asPagedIterable(String tailApiUrl, Class type, Consumer consumer) { + PagedIterable asPagedIterable(String tailApiUrl, Class type, Consumer consumer) { return new PagedIterableWithConsumer(type, this, tailApiUrl, consumer); } @@ -483,7 +483,7 @@ protected void wrapUp(S[] page) { * * Every iterator call reports a new batch. */ - /* package */ Iterator asIterator(String tailApiUrl, Class type, int pageSize) { + Iterator asIterator(String tailApiUrl, Class type, int pageSize) { method("GET"); if (pageSize != 0) @@ -742,7 +742,7 @@ private InputStream wrapStream(InputStream in) throws IOException { /** * Handle API error by either throwing it or by returning normally to retry. */ - /* package */ void handleApiError(IOException e) throws IOException { + void handleApiError(IOException e) throws IOException { int responseCode; try { responseCode = uc.getResponseCode(); diff --git a/src/main/java/org/kohsuke/github/SearchResult.java b/src/main/java/org/kohsuke/github/SearchResult.java index 28aa44fd47..e3b86a9e97 100644 --- a/src/main/java/org/kohsuke/github/SearchResult.java +++ b/src/main/java/org/kohsuke/github/SearchResult.java @@ -17,5 +17,5 @@ abstract class SearchResult { /** * Wraps up the retrieved object and return them. Only called once. */ - /* package */ abstract T[] getItems(GitHub root); + abstract T[] getItems(GitHub root); }