mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 17:20:54 +07:00
15 lines
297 B
Java
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> {
|
|
} |