Files
2016-04-06 21:17:37 +02:00

15 lines
297 B
Java

class GoodCodeRed {
public void foo(CategoryKey categoryKey) {
Category current = getCategory(categoryKey);
}
public <T extends Category<T>> T getCategory(CategoryKey<T> key) {
return null;
}
}
interface Category<T extends Category> {
}
class CategoryKey<K extends Category> {
}