Skip to content

Instantly share code, notes, and snippets.

@hborders
Created January 22, 2014 15:14
Show Gist options
  • Select an option

  • Save hborders/8560409 to your computer and use it in GitHub Desktop.

Select an option

Save hborders/8560409 to your computer and use it in GitHub Desktop.
Class<?> varargs example from https://twitter.com/natesbrain/status/425720792760856576 compiles file for me.
class A {
}
class B extends A {
}
class C extends A {
}
class D {
void foo(Class<?>... classes) {
}
void bar() {
foo(B.class, C.class);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment