Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spelling #1603

Merged
merged 2 commits into from
Jan 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ When modifying existing tests, you can change the stubbed WireMock data files by
#### Manual editing of data (minor changes only)

If you know what data will change, it is sometimes simplest to make any required changes to the data files manually.
This can be easier if the changes are minor or when you development environment is not setup to to take updated snapshots.
This can be easier if the changes are minor or when you development environment is not setup to take updated snapshots.

#### Generating a new snapshot

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/kohsuke/github/GHCommit.java
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public static class Stats {
/**
* A file that was modified.
*/
@SuppressFBWarnings(value = "UWF_UNWRITTEN_FIELD", justification = "It's being initilized by JSON deserialization")
@SuppressFBWarnings(value = "UWF_UNWRITTEN_FIELD", justification = "It's being initialized by JSON deserialization")
public static class File {

/** The status. */
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/kohsuke/github/GHCompare.java
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@ GHCompare lateBind(GHRepository owner) {
}

/**
* Compare commits had a child commit element with additional details we want to capture. This extenstion of
* GHCommit provides that.
* Compare commits had a child commit element with additional details we want to capture. This extension of GHCommit
* provides that.
*/
@SuppressFBWarnings(value = { "UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD", "UWF_UNWRITTEN_FIELD" },
justification = "JSON API")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

// TODO: Auto-generated Javadoc
/**
* Request/responce contains useful metadata. Custom exception allows store info for next diagnostics.
* Request/response contains useful metadata. Custom exception allows store info for next diagnostics.
*
* @author Kanstantsin Shautsou
*/
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/kohsuke/github/GHIOException.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

// TODO: Auto-generated Javadoc
/**
* Request/responce contains useful metadata. Custom exception allows store info for next diagnostics.
* Request/response contains useful metadata. Custom exception allows store info for next diagnostics.
*
* @author Kanstantsin Shautsou
*/
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/kohsuke/github/GHIssue.java
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ public List<GHIssueComment> getComments() throws IOException {
}

/**
* Obtains all the comments associated with this issue, witout any filter.
* Obtains all the comments associated with this issue, without any filter.
*
* @return the paged iterable
* @throws IOException
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/kohsuke/github/GHMyself.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ public List<GHEmail> getEmails2() throws IOException {
}

/**
* Returns the read-only list of all the pulic keys of the current user.
* Returns the read-only list of all the public keys of the current user.
* <p>
* NOTE: When using OAuth authenticaiton, the READ/WRITE User scope is required by the GitHub APIs, otherwise you
* NOTE: When using OAuth authentication, the READ/WRITE User scope is required by the GitHub APIs, otherwise you
* will get a 404 NOT FOUND.
*
* @return Always non-null.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/kohsuke/github/GHOrganization.java
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ public List<GHRepository> getRepositoriesWithOpenPullRequests() throws IOExcepti
}

/**
* Gets all the open pull requests in this organizataion.
* Gets all the open pull requests in this organization.
*
* @return the pull requests
* @throws IOException
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/kohsuke/github/GHRateLimit.java
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ Record getRecord(@Nonnull RateLimitTarget rateLimitTarget) {
}

/**
* A limit record used as a placeholder when the the actual limit is not known.
* A limit record used as a placeholder when the actual limit is not known.
*
* @since 1.100
*/
Expand Down Expand Up @@ -528,7 +528,7 @@ && getRemaining() <= other.getRemaining())) {
} else if (!(other instanceof UnknownLimitRecord)) {
// If the above is not the case that means other has a later reset
// or the same resent and fewer requests remaining.
// If the other record is not an unknown record, the the other is more recent
// If the other record is not an unknown record, the other is more recent
return other;
} else if (this.isExpired() && !other.isExpired()) {
// The other is an unknown record.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/kohsuke/github/GHRef.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public void delete() throws IOException {
}

/**
* Retrive a ref of the given type for the current GitHub repository.
* Retrieve a ref of the given type for the current GitHub repository.
*
* @param repository
* the repository to read from
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/org/kohsuke/github/GHRepository.java
Original file line number Diff line number Diff line change
Expand Up @@ -1891,7 +1891,7 @@ public GHCompare getCompare(GHBranch id1, GHBranch id2) throws IOException {
/**
* Retrieves all refs for the github repository.
*
* @return an array of GHRef elements coresponding with the refs in the remote repository.
* @return an array of GHRef elements corresponding with the refs in the remote repository.
* @throws IOException
* on failure communicating with GitHub
*/
Expand Down Expand Up @@ -1937,7 +1937,7 @@ public PagedIterable<GHRef> listRefs(String refType) throws IOException {
}

/**
* Retrive a ref of the given type for the current GitHub repository.
* Retrieve a ref of the given type for the current GitHub repository.
*
* @param refName
* eg: heads/branch
Expand All @@ -1964,7 +1964,7 @@ public GHTagObject getTagObject(String sha) throws IOException {
}

/**
* Retrive a tree of the given type for the current GitHub repository.
* Retrieve a tree of the given type for the current GitHub repository.
*
* @param sha
* sha number or branch name ex: "main"
Expand Down Expand Up @@ -2222,7 +2222,7 @@ public PagedIterable<GHCheckRun> getCheckRuns(String ref) throws IOException {
* @param description
* Optional short description.
* @param context
* Optinal commit status context.
* Optional commit status context.
* @return the gh commit status
* @throws IOException
* the io exception
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/kohsuke/github/GHTree.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public GHTreeEntry getEntry(String path) {
/**
* Returns true if the number of items in the tree array exceeded the GitHub maximum limit.
*
* @return true true if the number of items in the tree array exceeded the GitHub maximum limit otherwise false.
* @return true if the number of items in the tree array exceeded the GitHub maximum limit otherwise false.
*/
public boolean isTruncated() {
return truncated;
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/org/kohsuke/github/GHVerification.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
*
* @author Sourabh Sarvotham Parkala
* @see <a href="https://developer.github.com/v3/git/tags/#signature-verification-object">tags signature
* verificatiion</a>
* verification</a>
* @see <a href="https://developer.github.com/v3/git/commits/#signature-verification-object">commits signature
* verificatiion</a>
* verification</a>
*/
@SuppressFBWarnings(value = { "UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD", "UWF_UNWRITTEN_FIELD", "NP_UNWRITTEN_FIELD" },
justification = "JSON API")
Expand All @@ -32,7 +32,7 @@ public boolean isVerified() {
/**
* Gets reason for verification value.
*
* @return return reason of type {@link Reason}, such as "valid" or "unsigned". The possible values can be found in
* @return reason of type {@link Reason}, such as "valid" or "unsigned". The possible values can be found in
* {@link Reason}}
*/
public Reason getReason() {
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/kohsuke/github/GitHubRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ public String urlPath() {
}

/**
* The content type to to be sent by this request.
* The content type to be sent by this request.
*
* @return the content type.
*/
Expand Down Expand Up @@ -262,7 +262,7 @@ public URL url() {
/**
* Whether arguments for this request should be included in the URL or in the body of the request.
*
* @return true if the arguements should be sent in the body of the request.
* @return true if the arguments should be sent in the body of the request.
*/
@Override
public boolean hasBody() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public interface GHMetaExample {
* <ul>
* <li>Easy to create</li>
* <li>Not much code</li>
* <li>Mininal annotations</li>
* <li>Minimal annotations</li>
* </ul>
* Con:
* <ul>
Expand Down Expand Up @@ -373,7 +373,7 @@ void setImporter(List<String> importer) {
* <ul>
* <li>Very Easy to create</li>
* <li>Minimal code</li>
* <li>Mininal annotations</li>
* <li>Minimal annotations</li>
* <li>Fields effectively final and lists unmodifiable</li>
* </ul>
* Con:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public String getEncodedAuthorization() throws IOException {
* <p>
* Made internal for testing
*
* @return false if the the token has been refreshed within the required window, otherwise true
* @return false if the token has been refreshed within the required window, otherwise true
*/
boolean isNotValid() {
return Instant.now().isAfter(validUntil);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public GitHubConnectorResponse send(GitHubConnectorRequest request) throws IOExc
}

// HttpUrlConnection is nuts. This call opens the connection and gets a response.
// Putting this on it's own line for ease of debugging if needed.
// Putting this on its own line for ease of debugging if needed.
int statusCode = connection.getResponseCode();
Map<String, List<String>> headers = connection.getHeaderFields();

Expand Down