Skip to content

Commit 17edd33

Browse files
committed
Reorganized imports following hub4j#337
1 parent b0f2a87 commit 17edd33

26 files changed

Lines changed: 54 additions & 44 deletions

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package org.kohsuke.github;
22

33
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
4+
45
import java.net.URL;
56
import java.util.Collection;
67
import java.util.List;

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
package org.kohsuke.github;
22

3-
import static org.kohsuke.github.Previews.LOKI;
3+
import com.fasterxml.jackson.annotation.JsonProperty;
4+
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
45

56
import java.io.IOException;
67
import java.net.URL;
78
import java.util.Collection;
89

9-
import com.fasterxml.jackson.annotation.JsonProperty;
10-
11-
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
10+
import static org.kohsuke.github.Previews.*;
1211

1312
/**
1413
* A branch in a repository.

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
package org.kohsuke.github;
22

3-
import java.util.Collection;
4-
53
import com.fasterxml.jackson.annotation.JsonProperty;
6-
74
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
85

6+
import java.util.Collection;
7+
98
@SuppressFBWarnings(value = { "UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD", "UWF_UNWRITTEN_FIELD", "NP_UNWRITTEN_FIELD",
109
"URF_UNREAD_FIELD" }, justification = "JSON API")
1110
public class GHBranchProtection {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package org.kohsuke.github;
22

3-
import static org.kohsuke.github.Previews.LOKI;
3+
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
44

55
import java.io.IOException;
66
import java.util.ArrayList;
@@ -12,7 +12,7 @@
1212
import java.util.Map;
1313
import java.util.Set;
1414

15-
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
15+
import static org.kohsuke.github.Previews.*;
1616

1717
/**
1818
* Builder to configure the branch protection settings.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import com.infradna.tool.bridge_method_injector.WithBridgeMethods;
44
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
5+
56
import java.io.IOException;
67
import java.net.URL;
78
import java.util.AbstractList;

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
package org.kohsuke.github;
22

33
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
4+
45
import java.io.IOException;
56
import java.net.URL;
6-
import static org.kohsuke.github.Previews.SQUIRREL_GIRL;
7+
8+
import static org.kohsuke.github.Previews.*;
79

810
/**
911
* A comment attached to a commit (or a specific line in a specific file of a commit.)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package org.kohsuke.github;
22

3-
import java.io.IOException;
4-
53
import org.apache.commons.lang.StringUtils;
64

5+
import java.io.IOException;
6+
77
/**
88
* Search commits.
99
*

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package org.kohsuke.github;
22

3-
import java.io.IOException;
4-
53
import org.apache.commons.lang.builder.ToStringBuilder;
64

5+
import java.io.IOException;
6+
77
public class GHDeployKey {
88

99
protected String url, key, title;

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
package org.kohsuke.github;
22

3-
import java.io.IOException;
4-
import java.util.Date;
5-
63
import com.fasterxml.jackson.databind.node.ObjectNode;
74
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
85

6+
import java.io.IOException;
7+
import java.util.Date;
8+
99
/**
1010
* Represents an event.
1111
*

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import com.fasterxml.jackson.annotation.JsonProperty;
44
import com.fasterxml.jackson.annotation.JsonSetter;
55
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
6+
67
import java.io.Reader;
78
import java.util.List;
89

0 commit comments

Comments
 (0)