Skip to content

Commit f2fd82f

Browse files
committed
refactor
1 parent c2bdc54 commit f2fd82f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/main/java/org/scm4j/vcs/GitVCS.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
import java.io.File;
55
import java.io.FileWriter;
66
import java.io.IOException;
7+
import java.net.Authenticator;
78
import java.net.InetSocketAddress;
9+
import java.net.PasswordAuthentication;
810
import java.net.Proxy;
911
import java.net.Proxy.Type;
1012
import java.net.ProxySelector;

src/test/java/org/scm4j/vcs/GitVCSTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,12 +172,13 @@ public void testVCSTypeString() {
172172

173173
@Test
174174
public void testExceptions() throws Exception {
175+
@SuppressWarnings("serial")
175176
GitAPIException eApi = new GitAPIException("test git exception") {};
176177
Exception eCommon = new Exception("test common exception");
177178
for (Method m : IVCS.class.getDeclaredMethods()) {
178179
Object[] params = new Object[m.getParameterTypes().length];
179180
Integer i = 0;
180-
for (Class clazz : m.getParameterTypes()) {
181+
for (Class<?> clazz : m.getParameterTypes()) {
181182
params[i] = clazz.isPrimitive() ? 0: null;
182183
i++;
183184
}

0 commit comments

Comments
 (0)