Skip to content

Commit ac72d46

Browse files
committed
Java 7 compilation fix
1 parent 4570dd3 commit ac72d46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ public void testExceptions() throws Exception {
175175
GitAPIException eApi = new GitAPIException("test git exception") {};
176176
Exception eCommon = new Exception("test common exception");
177177
for (Method m : IVCS.class.getDeclaredMethods()) {
178-
Object[] params = new Object[m.getParameterCount()];
178+
Object[] params = new Object[m.getParameterTypes().length];
179179
Integer i = 0;
180180
for (Class clazz : m.getParameterTypes()) {
181181
params[i] = clazz.isPrimitive() ? 0: null;

0 commit comments

Comments
 (0)