From fafe6b0ff7ba04c887171a41862f0bb9150780c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20K=C3=BCrten?= Date: Thu, 9 Feb 2017 18:13:54 +0100 Subject: [PATCH] Remove unused imports Especially also remove the unsued import of javax.xml.bind.DatatypeConverter from GHContent which is non-public API as of Java 8 --- src/main/java/org/kohsuke/github/GHAuthorization.java | 1 - src/main/java/org/kohsuke/github/GHCommitComment.java | 2 -- src/main/java/org/kohsuke/github/GHContent.java | 2 -- .../java/org/kohsuke/github/GHDeploymentStatusBuilder.java | 1 - src/main/java/org/kohsuke/github/GHHooks.java | 1 - src/main/java/org/kohsuke/github/GHIssueSearchBuilder.java | 2 -- src/main/java/org/kohsuke/github/GHMyself.java | 1 - src/main/java/org/kohsuke/github/GHObject.java | 3 --- .../java/org/kohsuke/github/GHRepositorySearchBuilder.java | 2 -- src/main/java/org/kohsuke/github/GHUserSearchBuilder.java | 2 -- src/main/java/org/kohsuke/github/GitHub.java | 2 -- src/main/java/org/kohsuke/github/HttpConnector.java | 1 - src/main/java/org/kohsuke/github/PagedIterable.java | 1 - src/main/java/org/kohsuke/github/PagedSearchIterable.java | 1 - src/main/java/org/kohsuke/github/Requester.java | 1 - src/test/java/Foo.java | 3 --- src/test/java/org/kohsuke/github/AppTest.java | 3 --- src/test/java/org/kohsuke/github/CommitTest.java | 1 - src/test/java/org/kohsuke/github/GitHubTest.java | 1 - 19 files changed, 31 deletions(-) diff --git a/src/main/java/org/kohsuke/github/GHAuthorization.java b/src/main/java/org/kohsuke/github/GHAuthorization.java index 2a9fa39092..e196047776 100644 --- a/src/main/java/org/kohsuke/github/GHAuthorization.java +++ b/src/main/java/org/kohsuke/github/GHAuthorization.java @@ -3,7 +3,6 @@ import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; import java.net.URL; import java.util.Collection; -import java.util.Date; import java.util.List; /** diff --git a/src/main/java/org/kohsuke/github/GHCommitComment.java b/src/main/java/org/kohsuke/github/GHCommitComment.java index 3543b5fdb3..646badf5c3 100644 --- a/src/main/java/org/kohsuke/github/GHCommitComment.java +++ b/src/main/java/org/kohsuke/github/GHCommitComment.java @@ -3,8 +3,6 @@ import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; import java.io.IOException; import java.net.URL; -import java.util.Date; - import static org.kohsuke.github.Previews.SQUIRREL_GIRL; /** diff --git a/src/main/java/org/kohsuke/github/GHContent.java b/src/main/java/org/kohsuke/github/GHContent.java index 8b6f6fea54..d7a7bd446f 100644 --- a/src/main/java/org/kohsuke/github/GHContent.java +++ b/src/main/java/org/kohsuke/github/GHContent.java @@ -7,8 +7,6 @@ import java.io.IOException; import java.io.InputStream; -import javax.xml.bind.DatatypeConverter; - /** * A Content of a repository. * diff --git a/src/main/java/org/kohsuke/github/GHDeploymentStatusBuilder.java b/src/main/java/org/kohsuke/github/GHDeploymentStatusBuilder.java index 18cf5464ac..f028b6f889 100644 --- a/src/main/java/org/kohsuke/github/GHDeploymentStatusBuilder.java +++ b/src/main/java/org/kohsuke/github/GHDeploymentStatusBuilder.java @@ -1,7 +1,6 @@ package org.kohsuke.github; import java.io.IOException; -import java.util.Locale; public class GHDeploymentStatusBuilder { private final Requester builder; diff --git a/src/main/java/org/kohsuke/github/GHHooks.java b/src/main/java/org/kohsuke/github/GHHooks.java index 6f64587b17..6ecbb04b6e 100644 --- a/src/main/java/org/kohsuke/github/GHHooks.java +++ b/src/main/java/org/kohsuke/github/GHHooks.java @@ -5,7 +5,6 @@ import java.util.Arrays; import java.util.Collection; import java.util.List; -import java.util.Locale; import java.util.Map; /** diff --git a/src/main/java/org/kohsuke/github/GHIssueSearchBuilder.java b/src/main/java/org/kohsuke/github/GHIssueSearchBuilder.java index f9634a59f1..6cefc01678 100644 --- a/src/main/java/org/kohsuke/github/GHIssueSearchBuilder.java +++ b/src/main/java/org/kohsuke/github/GHIssueSearchBuilder.java @@ -1,7 +1,5 @@ package org.kohsuke.github; -import java.util.Locale; - /** * Search issues. * diff --git a/src/main/java/org/kohsuke/github/GHMyself.java b/src/main/java/org/kohsuke/github/GHMyself.java index cc05f03bc5..5ab9b4a270 100644 --- a/src/main/java/org/kohsuke/github/GHMyself.java +++ b/src/main/java/org/kohsuke/github/GHMyself.java @@ -6,7 +6,6 @@ import java.util.Collections; import java.util.HashSet; import java.util.List; -import java.util.Locale; import java.util.Map; import java.util.Set; import java.util.TreeMap; diff --git a/src/main/java/org/kohsuke/github/GHObject.java b/src/main/java/org/kohsuke/github/GHObject.java index a81d913a5c..d368af0aec 100644 --- a/src/main/java/org/kohsuke/github/GHObject.java +++ b/src/main/java/org/kohsuke/github/GHObject.java @@ -3,10 +3,7 @@ import com.infradna.tool.bridge_method_injector.WithBridgeMethods; import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; import org.apache.commons.lang.builder.ReflectionToStringBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; import org.apache.commons.lang.builder.ToStringStyle; -import org.apache.commons.lang.reflect.FieldUtils; - import java.io.IOException; import java.lang.reflect.Field; import java.net.URL; diff --git a/src/main/java/org/kohsuke/github/GHRepositorySearchBuilder.java b/src/main/java/org/kohsuke/github/GHRepositorySearchBuilder.java index 03b12f5133..642f7f3d95 100644 --- a/src/main/java/org/kohsuke/github/GHRepositorySearchBuilder.java +++ b/src/main/java/org/kohsuke/github/GHRepositorySearchBuilder.java @@ -1,7 +1,5 @@ package org.kohsuke.github; -import java.util.Locale; - /** * Search repositories. * diff --git a/src/main/java/org/kohsuke/github/GHUserSearchBuilder.java b/src/main/java/org/kohsuke/github/GHUserSearchBuilder.java index ca40f4d050..3edcd15065 100644 --- a/src/main/java/org/kohsuke/github/GHUserSearchBuilder.java +++ b/src/main/java/org/kohsuke/github/GHUserSearchBuilder.java @@ -1,7 +1,5 @@ package org.kohsuke.github; -import java.util.Locale; - /** * Search users. * diff --git a/src/main/java/org/kohsuke/github/GitHub.java b/src/main/java/org/kohsuke/github/GitHub.java index ccc18b450e..3844d8181e 100644 --- a/src/main/java/org/kohsuke/github/GitHub.java +++ b/src/main/java/org/kohsuke/github/GitHub.java @@ -47,8 +47,6 @@ import java.util.Map; import java.util.Set; import java.util.TimeZone; -import java.util.concurrent.TimeUnit; -import java.util.logging.Level; import java.util.logging.Logger; import javax.annotation.CheckForNull; import javax.annotation.Nonnull; diff --git a/src/main/java/org/kohsuke/github/HttpConnector.java b/src/main/java/org/kohsuke/github/HttpConnector.java index 72f7ce5b05..2d87c148c9 100644 --- a/src/main/java/org/kohsuke/github/HttpConnector.java +++ b/src/main/java/org/kohsuke/github/HttpConnector.java @@ -5,7 +5,6 @@ import java.io.IOException; import java.net.HttpURLConnection; import java.net.URL; -import java.util.concurrent.TimeUnit; /** * Pluggability for customizing HTTP request behaviors or using altogether different library. diff --git a/src/main/java/org/kohsuke/github/PagedIterable.java b/src/main/java/org/kohsuke/github/PagedIterable.java index 41c5bfdb0c..1c6eccea36 100644 --- a/src/main/java/org/kohsuke/github/PagedIterable.java +++ b/src/main/java/org/kohsuke/github/PagedIterable.java @@ -1,6 +1,5 @@ package org.kohsuke.github; -import java.io.IOException; import java.util.ArrayList; import java.util.LinkedHashSet; import java.util.List; diff --git a/src/main/java/org/kohsuke/github/PagedSearchIterable.java b/src/main/java/org/kohsuke/github/PagedSearchIterable.java index 1efe49a1ef..f23bd6b58c 100644 --- a/src/main/java/org/kohsuke/github/PagedSearchIterable.java +++ b/src/main/java/org/kohsuke/github/PagedSearchIterable.java @@ -2,7 +2,6 @@ import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; -import java.io.IOException; import java.util.Iterator; /** diff --git a/src/main/java/org/kohsuke/github/Requester.java b/src/main/java/org/kohsuke/github/Requester.java index db70fbd64b..d4bca32d6f 100644 --- a/src/main/java/org/kohsuke/github/Requester.java +++ b/src/main/java/org/kohsuke/github/Requester.java @@ -48,7 +48,6 @@ import java.util.Locale; import java.util.Map; import java.util.NoSuchElementException; -import java.util.logging.Level; import java.util.logging.Logger; import java.util.regex.Matcher; import java.util.regex.Pattern; diff --git a/src/test/java/Foo.java b/src/test/java/Foo.java index 35e5eb5955..540f9fd3ca 100644 --- a/src/test/java/Foo.java +++ b/src/test/java/Foo.java @@ -1,10 +1,7 @@ -import org.kohsuke.github.GHRepository; import org.kohsuke.github.GHRepository.Contributor; import org.kohsuke.github.GHUser; import org.kohsuke.github.GitHub; -import java.util.Collection; - /** * @author Kohsuke Kawaguchi */ diff --git a/src/test/java/org/kohsuke/github/AppTest.java b/src/test/java/org/kohsuke/github/AppTest.java index a20b2eccf3..3d40c78616 100755 --- a/src/test/java/org/kohsuke/github/AppTest.java +++ b/src/test/java/org/kohsuke/github/AppTest.java @@ -5,8 +5,6 @@ import com.google.common.collect.Lists; import org.apache.commons.io.IOUtils; -import org.hamcrest.CoreMatchers; -import org.junit.Assume; import org.junit.Test; import org.kohsuke.github.GHCommit.File; import org.kohsuke.github.GHOrganization.Permission; @@ -16,7 +14,6 @@ import java.net.URL; import java.util.*; import java.util.Map.Entry; -import java.util.concurrent.ExecutionException; import java.util.regex.Pattern; import static org.hamcrest.CoreMatchers.*; diff --git a/src/test/java/org/kohsuke/github/CommitTest.java b/src/test/java/org/kohsuke/github/CommitTest.java index c42fceef41..8e4edb1fed 100644 --- a/src/test/java/org/kohsuke/github/CommitTest.java +++ b/src/test/java/org/kohsuke/github/CommitTest.java @@ -1,7 +1,6 @@ package org.kohsuke.github; import com.google.common.collect.Iterables; -import com.google.common.collect.Iterators; import org.junit.Test; import java.io.IOException; diff --git a/src/test/java/org/kohsuke/github/GitHubTest.java b/src/test/java/org/kohsuke/github/GitHubTest.java index 010adc8b24..a418db5fde 100644 --- a/src/test/java/org/kohsuke/github/GitHubTest.java +++ b/src/test/java/org/kohsuke/github/GitHubTest.java @@ -8,7 +8,6 @@ import java.util.Map; import com.google.common.collect.Iterables; -import com.google.common.collect.Iterators; import org.junit.Test; import static org.hamcrest.CoreMatchers.notNullValue;