Skip to content

Commit 6a39d7f

Browse files
committed
Trim whitespace and end with newline
1 parent a15e67f commit 6a39d7f

25 files changed

Lines changed: 36 additions & 32 deletions

pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,10 @@
364364
<file>${basedir}/src/build/eclipse/eclipse.importorder</file>
365365
</importOrder>
366366
<removeUnusedImports />
367+
368+
<trimTrailingWhitespace />
369+
<endWithNewline />
370+
367371
</java>
368372
</configuration>
369373
</plugin>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
* <p>
1313
* Batching looks like this:
1414
* </p>
15-
*
15+
*
1616
* <pre>
1717
* update().someName(value).otherName(value).done()
1818
* </pre>
1919
* <p>
2020
* Single changes look like this:
2121
* </p>
22-
*
22+
*
2323
* <pre>
2424
* set().someName(value);
2525
* set().otherName(value);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ public static enum AnnotationLevel {
295295

296296
/**
297297
* Updates this check run.
298-
*
298+
*
299299
* @return a builder which you should customize, then call {@link GHCheckRunBuilder#create}
300300
*/
301301
@Preview(Previews.ANTIOPE)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ public PagedIterable<GHCheckRun> getCheckRuns() throws IOException {
574574

575575
/**
576576
* Some of the fields are not always filled in when this object is retrieved as a part of another API call.
577-
*
577+
*
578578
* @throws IOException
579579
* on error
580580
*/

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public String getPath() {
102102

103103
/**
104104
* Gets target of a symlink. This will only be set if {@code "symlink".equals(getType())}
105-
*
105+
*
106106
* @return the target
107107
*/
108108
public String getTarget() {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public Map<String, Object> getPayloadMap() {
8585

8686
/**
8787
* Gets payload without assuming its type. It could be a String or a Map.
88-
*
88+
*
8989
* @return the payload
9090
*/
9191
public Object getPayloadObject() {

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1220,7 +1220,7 @@ public static class Status extends GHEventPayload {
12201220

12211221
/**
12221222
* Gets the status content.
1223-
*
1223+
*
12241224
* @return status content
12251225
*/
12261226
public String getContext() {
@@ -1238,7 +1238,7 @@ public String getTargetUrl() {
12381238

12391239
/**
12401240
* Gets the status description.
1241-
*
1241+
*
12421242
* @return status description
12431243
*/
12441244
public String getDescription() {
@@ -1247,7 +1247,7 @@ public String getDescription() {
12471247

12481248
/**
12491249
* Gets the status state.
1250-
*
1250+
*
12511251
* @return status state
12521252
*/
12531253
public GHCommitState getState() {
@@ -1256,7 +1256,7 @@ public GHCommitState getState() {
12561256

12571257
/**
12581258
* Sets the status stage.
1259-
*
1259+
*
12601260
* @param state
12611261
* status state
12621262
*/
@@ -1266,7 +1266,7 @@ public void setState(GHCommitState state) {
12661266

12671267
/**
12681268
* Gets the commit associated with the status event.
1269-
*
1269+
*
12701270
* @return commit
12711271
*/
12721272
public GHCommit getCommit() {
@@ -1275,7 +1275,7 @@ public GHCommit getCommit() {
12751275

12761276
/**
12771277
* Sets the commit associated with the status event.
1278-
*
1278+
*
12791279
* @param commit
12801280
* commit
12811281
*/

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public String getGitPushUrl() {
123123

124124
/**
125125
* Get the html url.
126-
*
126+
*
127127
* @return the github html url
128128
*/
129129
public URL getHtmlUrl() {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@
3131
*/
3232
public enum GHIssueState {
3333
OPEN, CLOSED, ALL
34-
}
34+
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public Updater update() {
187187

188188
/**
189189
* Begins a single property update.
190-
*
190+
*
191191
* @return a {@link Setter}
192192
*/
193193
@BetaApi

0 commit comments

Comments
 (0)