Skip to content

Commit

Permalink
Remove unused imports
Browse files Browse the repository at this point in the history
Especially also remove the unsued import of
javax.xml.bind.DatatypeConverter from GHContent which is non-public API
as of Java 8
  • Loading branch information
sebkur committed Feb 9, 2017
1 parent 1f4325e commit fafe6b0
Show file tree
Hide file tree
Showing 19 changed files with 0 additions and 31 deletions.
1 change: 0 additions & 1 deletion src/main/java/org/kohsuke/github/GHAuthorization.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/org/kohsuke/github/GHCommitComment.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/org/kohsuke/github/GHContent.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
import java.io.IOException;
import java.io.InputStream;

import javax.xml.bind.DatatypeConverter;

/**
* A Content of a repository.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package org.kohsuke.github;

import java.io.IOException;
import java.util.Locale;

public class GHDeploymentStatusBuilder {
private final Requester builder;
Expand Down
1 change: 0 additions & 1 deletion src/main/java/org/kohsuke/github/GHHooks.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import java.util.Locale;
import java.util.Map;

/**
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/org/kohsuke/github/GHIssueSearchBuilder.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package org.kohsuke.github;

import java.util.Locale;

/**
* Search issues.
*
Expand Down
1 change: 0 additions & 1 deletion src/main/java/org/kohsuke/github/GHMyself.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 0 additions & 3 deletions src/main/java/org/kohsuke/github/GHObject.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package org.kohsuke.github;

import java.util.Locale;

/**
* Search repositories.
*
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/org/kohsuke/github/GHUserSearchBuilder.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package org.kohsuke.github;

import java.util.Locale;

/**
* Search users.
*
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/org/kohsuke/github/GitHub.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion src/main/java/org/kohsuke/github/HttpConnector.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 0 additions & 1 deletion src/main/java/org/kohsuke/github/PagedIterable.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package org.kohsuke.github;

import java.io.IOException;
import java.util.ArrayList;
import java.util.LinkedHashSet;
import java.util.List;
Expand Down
1 change: 0 additions & 1 deletion src/main/java/org/kohsuke/github/PagedSearchIterable.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;

import java.io.IOException;
import java.util.Iterator;

/**
Expand Down
1 change: 0 additions & 1 deletion src/main/java/org/kohsuke/github/Requester.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 0 additions & 3 deletions src/test/java/Foo.java
Original file line number Diff line number Diff line change
@@ -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
*/
Expand Down
3 changes: 0 additions & 3 deletions src/test/java/org/kohsuke/github/AppTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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.*;
Expand Down
1 change: 0 additions & 1 deletion src/test/java/org/kohsuke/github/CommitTest.java
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
1 change: 0 additions & 1 deletion src/test/java/org/kohsuke/github/GitHubTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fafe6b0

Please sign in to comment.