mirror of
https://github.com/jlengrand/github-api.git
synced 2026-03-10 08:21:21 +00:00
Trim whitespace and end with newline
This commit is contained in:
4
pom.xml
4
pom.xml
@@ -364,6 +364,10 @@
|
||||
<file>${basedir}/src/build/eclipse/eclipse.importorder</file>
|
||||
</importOrder>
|
||||
<removeUnusedImports />
|
||||
|
||||
<trimTrailingWhitespace />
|
||||
<endWithNewline />
|
||||
|
||||
</java>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
@@ -12,14 +12,14 @@ import javax.annotation.Nonnull;
|
||||
* <p>
|
||||
* Batching looks like this:
|
||||
* </p>
|
||||
*
|
||||
*
|
||||
* <pre>
|
||||
* update().someName(value).otherName(value).done()
|
||||
* </pre>
|
||||
* <p>
|
||||
* Single changes look like this:
|
||||
* </p>
|
||||
*
|
||||
*
|
||||
* <pre>
|
||||
* set().someName(value);
|
||||
* set().otherName(value);
|
||||
|
||||
@@ -295,7 +295,7 @@ public class GHCheckRun extends GHObject {
|
||||
|
||||
/**
|
||||
* Updates this check run.
|
||||
*
|
||||
*
|
||||
* @return a builder which you should customize, then call {@link GHCheckRunBuilder#create}
|
||||
*/
|
||||
@Preview(Previews.ANTIOPE)
|
||||
|
||||
@@ -574,7 +574,7 @@ public class GHCommit {
|
||||
|
||||
/**
|
||||
* Some of the fields are not always filled in when this object is retrieved as a part of another API call.
|
||||
*
|
||||
*
|
||||
* @throws IOException
|
||||
* on error
|
||||
*/
|
||||
|
||||
@@ -102,7 +102,7 @@ public class GHContent implements Refreshable {
|
||||
|
||||
/**
|
||||
* Gets target of a symlink. This will only be set if {@code "symlink".equals(getType())}
|
||||
*
|
||||
*
|
||||
* @return the target
|
||||
*/
|
||||
public String getTarget() {
|
||||
|
||||
@@ -85,7 +85,7 @@ public class GHDeployment extends GHObject {
|
||||
|
||||
/**
|
||||
* Gets payload without assuming its type. It could be a String or a Map.
|
||||
*
|
||||
*
|
||||
* @return the payload
|
||||
*/
|
||||
public Object getPayloadObject() {
|
||||
|
||||
@@ -1220,7 +1220,7 @@ public class GHEventPayload {
|
||||
|
||||
/**
|
||||
* Gets the status content.
|
||||
*
|
||||
*
|
||||
* @return status content
|
||||
*/
|
||||
public String getContext() {
|
||||
@@ -1238,7 +1238,7 @@ public class GHEventPayload {
|
||||
|
||||
/**
|
||||
* Gets the status description.
|
||||
*
|
||||
*
|
||||
* @return status description
|
||||
*/
|
||||
public String getDescription() {
|
||||
@@ -1247,7 +1247,7 @@ public class GHEventPayload {
|
||||
|
||||
/**
|
||||
* Gets the status state.
|
||||
*
|
||||
*
|
||||
* @return status state
|
||||
*/
|
||||
public GHCommitState getState() {
|
||||
@@ -1256,7 +1256,7 @@ public class GHEventPayload {
|
||||
|
||||
/**
|
||||
* Sets the status stage.
|
||||
*
|
||||
*
|
||||
* @param state
|
||||
* status state
|
||||
*/
|
||||
@@ -1266,7 +1266,7 @@ public class GHEventPayload {
|
||||
|
||||
/**
|
||||
* Gets the commit associated with the status event.
|
||||
*
|
||||
*
|
||||
* @return commit
|
||||
*/
|
||||
public GHCommit getCommit() {
|
||||
@@ -1275,7 +1275,7 @@ public class GHEventPayload {
|
||||
|
||||
/**
|
||||
* Sets the commit associated with the status event.
|
||||
*
|
||||
*
|
||||
* @param commit
|
||||
* commit
|
||||
*/
|
||||
|
||||
@@ -123,7 +123,7 @@ public class GHGist extends GHObject {
|
||||
|
||||
/**
|
||||
* Get the html url.
|
||||
*
|
||||
*
|
||||
* @return the github html url
|
||||
*/
|
||||
public URL getHtmlUrl() {
|
||||
|
||||
@@ -31,4 +31,4 @@ package org.kohsuke.github;
|
||||
*/
|
||||
public enum GHIssueState {
|
||||
OPEN, CLOSED, ALL
|
||||
}
|
||||
}
|
||||
|
||||
@@ -187,7 +187,7 @@ public class GHLabel {
|
||||
|
||||
/**
|
||||
* Begins a single property update.
|
||||
*
|
||||
*
|
||||
* @return a {@link Setter}
|
||||
*/
|
||||
@BetaApi
|
||||
|
||||
@@ -7,4 +7,4 @@ package org.kohsuke.github;
|
||||
*/
|
||||
public enum GHMilestoneState {
|
||||
OPEN, CLOSED
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ public abstract class GHObject {
|
||||
|
||||
/**
|
||||
* Called by Jackson
|
||||
*
|
||||
*
|
||||
* @param responseInfo
|
||||
* the {@link GitHubResponse.ResponseInfo} to get headers from.
|
||||
*/
|
||||
|
||||
@@ -181,7 +181,7 @@ public class GHOrganization extends GHPerson {
|
||||
|
||||
/**
|
||||
* Finds a team that has the given slug in its {@link GHTeam#getSlug()}
|
||||
*
|
||||
*
|
||||
* @param slug
|
||||
* the slug
|
||||
* @return the team by slug
|
||||
|
||||
@@ -28,7 +28,7 @@ import java.util.Locale;
|
||||
|
||||
/**
|
||||
* Permission for a user in a repository.
|
||||
*
|
||||
*
|
||||
* @see <a href="https://developer.github.com/v3/repos/collaborators/#review-a-users-permission-level">API</a>
|
||||
*/
|
||||
class GHPermission {
|
||||
|
||||
@@ -236,7 +236,7 @@ public abstract class GHPerson extends GHObject {
|
||||
|
||||
/**
|
||||
* Gets the Twitter Username of this user, like "GitHub"
|
||||
*
|
||||
*
|
||||
* @return the Twitter username
|
||||
* @throws IOException
|
||||
* the io exception
|
||||
|
||||
@@ -311,4 +311,4 @@ public class GHProject extends GHObject {
|
||||
.fetch(GHProjectColumn.class)
|
||||
.wrap(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -266,7 +266,7 @@ public class GHRateLimit {
|
||||
/**
|
||||
* Merge a {@link GHRateLimit} with another one to create a new {@link GHRateLimit} keeping the latest
|
||||
* {@link Record}s from each.
|
||||
*
|
||||
*
|
||||
* @param newLimit
|
||||
* {@link GHRateLimit} with potentially updated {@link Record}s.
|
||||
* @return a merged {@link GHRateLimit} with the latest {@link Record}s from these two instances. If the merged
|
||||
@@ -458,7 +458,7 @@ public class GHRateLimit {
|
||||
* {@link Record}s with earlier {@link #getResetEpochSeconds()} are replaced by those with later.
|
||||
* {@link Record}s with the same {@link #getResetEpochSeconds()} are replaced by those with less remaining
|
||||
* count.
|
||||
*
|
||||
*
|
||||
* {@link UnknownLimitRecord}s compare with each other like regular {@link Record}s.
|
||||
*
|
||||
* {@link Record}s are replaced by {@link UnknownLimitRecord}s only when the current {@link Record} is expired
|
||||
|
||||
@@ -46,4 +46,4 @@ public class GHRequestedAction extends GHObject {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -741,7 +741,7 @@ public class GitHub {
|
||||
* @return the team
|
||||
* @throws IOException
|
||||
* the io exception
|
||||
*
|
||||
*
|
||||
* @deprecated Use {@link GHOrganization#getTeam(long)}
|
||||
* @see <a href= "https://developer.github.com/v3/teams/#get-team-legacy">deprecation notice</a>
|
||||
*/
|
||||
|
||||
@@ -164,7 +164,7 @@ public abstract class PagedIterable<T> implements Iterable<T> {
|
||||
|
||||
/**
|
||||
* Concatenates a list of arrays into a single array.
|
||||
*
|
||||
*
|
||||
* @param type
|
||||
* the type of array to be returned.
|
||||
* @param pages
|
||||
|
||||
@@ -35,14 +35,14 @@ public class PagedIterator<T> implements Iterator<T> {
|
||||
* Current batch of items. Each time {@link #next()} is called the next item in this array will be returned. After
|
||||
* the last item of the array is returned, when {@link #next()} is called again, a new page of items will be fetched
|
||||
* and iterating will continue from the first item in the new page.
|
||||
*
|
||||
*
|
||||
* @see #fetch() {@link #fetch()} for details on how this field is used.
|
||||
*/
|
||||
private T[] currentPage;
|
||||
|
||||
/**
|
||||
* The index of the next item on the page, the item that will be returned when {@link #next()} is called.
|
||||
*
|
||||
*
|
||||
* @see #fetch() {@link #fetch()} for details on how this field is used.
|
||||
*/
|
||||
private int nextItemIndex;
|
||||
|
||||
@@ -44,7 +44,7 @@ public abstract class RateLimitChecker {
|
||||
* {@code true} at least once for a particular request, {@link GitHubRateLimitChecker} may choose to sleep for some
|
||||
* small additional between calls and before letting the request continue.
|
||||
* </p>
|
||||
*
|
||||
*
|
||||
* @param rateLimitRecord
|
||||
* the current {@link GHRateLimit.Record} to check against.
|
||||
* @param count
|
||||
|
||||
@@ -2,7 +2,7 @@ package org.kohsuke.github;
|
||||
|
||||
/**
|
||||
* Specifies the rate limit record of an operation.
|
||||
*
|
||||
*
|
||||
* @see GitHubBuilder#withRateLimitChecker(RateLimitChecker, RateLimitTarget)
|
||||
*/
|
||||
public enum RateLimitTarget {
|
||||
|
||||
@@ -49,7 +49,7 @@ public class OkHttpConnector implements HttpConnector {
|
||||
|
||||
/**
|
||||
* package private for tests to be able to change max-age for cache.
|
||||
*
|
||||
*
|
||||
* @param urlFactory
|
||||
* @param cacheMaxAge
|
||||
*/
|
||||
|
||||
@@ -29,4 +29,4 @@ public class GHTeamBuilderTest extends AbstractGitHubWireMockTest {
|
||||
assertEquals(GHTeam.Privacy.CLOSED, childTeam.getPrivacy());
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user