Skip to content

Instantly share code, notes, and snippets.

@Nkzn
Created July 6, 2012 06:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nkzn/3058409 to your computer and use it in GitHub Desktop.
Save Nkzn/3058409 to your computer and use it in GitHub Desktop.
class Sample {
public static void main(String[] args) {
bar(SuperHoge.class);
bar(Hoge.class);
bar(SubHoge.class); // ←これの話
}
static void bar(Class<? extends SuperHoge> clazz) {
}
}
class SubHoge extends Hoge {
}
class Hoge extends SuperHoge {
}
class SuperHoge {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment