Skip to content

Commit

Permalink
I assumed Java would unbox this, but I was wrong.
Browse files Browse the repository at this point in the history
Static typing keeps me safe.
  • Loading branch information
jcrossley3 committed Mar 19, 2015
1 parent af6e697 commit 673adb6
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -182,7 +182,7 @@ private Service installService(Class clazz, Object... args) throws Exception {
} else {
List extra = new ArrayList(Collections.nCopies(2, null));
extra.addAll(Arrays.asList(args));
return (Service) installer.invoke(null, extra);
return (Service) installer.invoke(null, extra.toArray());
}
}

Expand Down

0 comments on commit 673adb6

Please sign in to comment.