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

Commit d070f9d

Browse files
committed
TAB -> WS
1 parent b736e20 commit d070f9d

15 files changed

Lines changed: 495 additions & 504 deletions

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

Lines changed: 59 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -13,83 +13,80 @@
1313
* @see <a href="http://developer.github.com/v3/oauth/#create-a-new-authorization">API documentation</a>
1414
*/
1515
public class GHAuthorization extends GHObject {
16-
public static final String USER = "user";
17-
public static final String USER_EMAIL = "user:email";
18-
public static final String USER_FOLLOW = "user:follow";
19-
public static final String PUBLIC_REPO = "public_repo";
20-
public static final String REPO = "repo";
21-
public static final String REPO_STATUS = "repo:status";
22-
public static final String DELETE_REPO = "delete_repo";
23-
public static final String NOTIFICATIONS = "notifications";
24-
public static final String GIST = "gist";
25-
public static final String READ_HOOK = "read:repo_hook";
26-
public static final String WRITE_HOOK = "write:repo_hook";
27-
public static final String AMIN_HOOK = "admin:repo_hook";
28-
public static final String READ_ORG = "read:org";
29-
public static final String WRITE_ORG = "write:org";
30-
public static final String ADMIN_ORG = "admin:org";
31-
public static final String READ_KEY = "read:public_key";
32-
public static final String WRITE_KEY = "write:public_key";
33-
public static final String ADMIN_KEY = "admin:public_key";
34-
35-
private GitHub root;
36-
private List<String> scopes;
37-
private String token;
38-
private App app;
39-
private String note;
40-
private String note_url;
16+
public static final String USER = "user";
17+
public static final String USER_EMAIL = "user:email";
18+
public static final String USER_FOLLOW = "user:follow";
19+
public static final String PUBLIC_REPO = "public_repo";
20+
public static final String REPO = "repo";
21+
public static final String REPO_STATUS = "repo:status";
22+
public static final String DELETE_REPO = "delete_repo";
23+
public static final String NOTIFICATIONS = "notifications";
24+
public static final String GIST = "gist";
25+
public static final String READ_HOOK = "read:repo_hook";
26+
public static final String WRITE_HOOK = "write:repo_hook";
27+
public static final String AMIN_HOOK = "admin:repo_hook";
28+
public static final String READ_ORG = "read:org";
29+
public static final String WRITE_ORG = "write:org";
30+
public static final String ADMIN_ORG = "admin:org";
31+
public static final String READ_KEY = "read:public_key";
32+
public static final String WRITE_KEY = "write:public_key";
33+
public static final String ADMIN_KEY = "admin:public_key";
34+
35+
private GitHub root;
36+
private List<String> scopes;
37+
private String token;
38+
private App app;
39+
private String note;
40+
private String note_url;
4141

4242
public GitHub getRoot() {
4343
return root;
4444
}
4545

46-
public List<String> getScopes() {
47-
return scopes;
48-
}
46+
public List<String> getScopes() {
47+
return scopes;
48+
}
4949

50-
public String getToken(){
51-
return token;
52-
}
50+
public String getToken() {
51+
return token;
52+
}
5353

54-
public URL getAppUrl(){
54+
public URL getAppUrl() {
5555
return GitHub.parseURL(app.url);
56-
}
56+
}
5757

58-
public String getAppName() {
59-
return app.name;
60-
}
61-
62-
public URL getApiURL(){
58+
public String getAppName() {
59+
return app.name;
60+
}
61+
62+
public URL getApiURL() {
6363
return GitHub.parseURL(url);
64-
}
64+
}
6565

66-
/**
67-
* @deprecated This object has no HTML URL.
68-
*/
69-
@Override
70-
public URL getHtmlUrl() {
71-
return null;
72-
}
66+
/**
67+
* @deprecated This object has no HTML URL.
68+
*/
69+
@Override
70+
public URL getHtmlUrl() {
71+
return null;
72+
}
7373

74-
public String getNote() {
75-
return note;
76-
}
74+
public String getNote() {
75+
return note;
76+
}
7777

78-
public URL getNoteUrl(){
78+
public URL getNoteUrl() {
7979
return GitHub.parseURL(note_url);
80-
}
81-
82-
/*package*/ GHAuthorization wrap(GitHub root) {
83-
this.root = root;
84-
return this;
85-
}
86-
87-
80+
}
8881

82+
/*package*/ GHAuthorization wrap(GitHub root) {
83+
this.root = root;
84+
return this;
85+
}
8986

9087

91-
private static class App{
92-
private String url;
93-
private String name;
94-
}
88+
private static class App {
89+
private String url;
90+
private String name;
91+
}
9592
}

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

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -32,26 +32,26 @@ public static class ShortInfo {
3232

3333
private int comment_count;
3434

35-
@WithBridgeMethods(value=GHAuthor.class,castRequired=true)
36-
public GitUser getAuthor() {
37-
return author;
38-
}
35+
@WithBridgeMethods(value = GHAuthor.class, castRequired = true)
36+
public GitUser getAuthor() {
37+
return author;
38+
}
3939

40-
@WithBridgeMethods(value=GHAuthor.class,castRequired=true)
41-
public GitUser getCommitter() {
42-
return committer;
43-
}
40+
@WithBridgeMethods(value = GHAuthor.class, castRequired = true)
41+
public GitUser getCommitter() {
42+
return committer;
43+
}
4444

4545
/**
4646
* Commit message.
4747
*/
48-
public String getMessage() {
49-
return message;
50-
}
48+
public String getMessage() {
49+
return message;
50+
}
5151

52-
public int getCommentCount() {
53-
return comment_count;
54-
}
52+
public int getCommentCount() {
53+
return comment_count;
54+
}
5555
}
5656

5757
/**
@@ -153,14 +153,13 @@ static class User {
153153
Stats stats;
154154
List<Parent> parents;
155155
User author,committer;
156-
157-
156+
158157

159158
public ShortInfo getCommitShortInfo() {
160-
return commit;
161-
}
159+
return commit;
160+
}
162161

163-
/**
162+
/**
164163
* The repository that contains the commit.
165164
*/
166165
public GHRepository getOwner() {

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ public GHUser getCreator() {
5050
return creator;
5151
}
5252

53-
public String getContext() {
54-
return context;
55-
}
53+
public String getContext() {
54+
return context;
55+
}
5656

5757
/**
5858
* @deprecated This object has no HTML URL.

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ public Commit[] getCommits() {
7070
}
7171

7272
public GHCommit.File[] getFiles() {
73-
return files;
74-
}
73+
return files;
74+
}
7575

76-
public GHCompare wrap(GHRepository owner) {
76+
public GHCompare wrap(GHRepository owner) {
7777
this.owner = owner;
7878
for (Commit commit : commits) {
7979
commit.wrapUp(owner);

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public class GHDeployKey {
99
protected String url, key, title;
1010
protected boolean verified;
1111
protected int id;
12-
private GHRepository owner;
12+
private GHRepository owner;
1313

1414
public int getId() {
1515
return id;
@@ -31,10 +31,10 @@ public boolean isVerified() {
3131
return verified;
3232
}
3333

34-
public GHDeployKey wrap(GHRepository repo) {
35-
this.owner = repo;
36-
return this;
37-
}
34+
public GHDeployKey wrap(GHRepository repo) {
35+
this.owner = repo;
36+
return this;
37+
}
3838

3939
public String toString() {
4040
return new ToStringBuilder(this).append("title",title).append("id",id).append("key",key).toString();

0 commit comments

Comments
 (0)