Skip to content

Commit 7e7119c

Browse files
kinowlesv
authored andcommitted
Minor cleanup removing unnecessary imports and suppress warnings (#92)
1 parent dffccfd commit 7e7119c

3 files changed

Lines changed: 0 additions & 4 deletions

File tree

oauth2_http/java/com/google/auth/oauth2/DefaultCredentialsProvider.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,10 @@
3838
import java.io.FileNotFoundException;
3939
import java.io.IOException;
4040
import java.io.InputStream;
41-
import java.lang.reflect.Constructor;
4241
import java.lang.reflect.Field;
4342
import java.lang.reflect.InvocationTargetException;
4443
import java.lang.reflect.Method;
4544
import java.security.AccessControlException;
46-
import java.util.Collection;
4745
import java.util.Collections;
4846
import java.util.Locale;
4947

oauth2_http/java/com/google/auth/oauth2/GoogleCredentials.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,6 @@ public boolean createScopedRequired() {
183183
* If the credentials support scopes, create a copy of the the idenitity with the specified
184184
* scopes, otherwise returns the same instance.
185185
*/
186-
@SuppressWarnings("unused")
187186
public GoogleCredentials createScoped(Collection<String> scopes) {
188187
return this;
189188
}

oauth2_http/javatests/com/google/auth/oauth2/DefaultCredentialsProviderTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,6 @@ private void testUserProvidesToken(TestDefaultCredentialsProvider testProvider,
408408
public static class MockAppEngineCredentials extends GoogleCredentials {
409409
private static final long serialVersionUID = 2695173591854484322L;
410410

411-
@SuppressWarnings("unused")
412411
public MockAppEngineCredentials(Collection<String> scopes) {
413412
}
414413

0 commit comments

Comments
 (0)