mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
intersection type flattening: prefer non raw types (IDEA-95124)
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
interface BusinessEntity<E extends BusinessEntity<E>> {
|
||||
}
|
||||
|
||||
interface EntityId<E extends BusinessEntity> {
|
||||
E getEntity();
|
||||
}
|
||||
|
||||
public class MyTest {
|
||||
<T extends BusinessEntity<T>> T getEntity(EntityId<T> defaultValue) {
|
||||
return getEntityID(defaultValue).getEntity();
|
||||
}
|
||||
|
||||
public <P extends EntityId<?>> P getEntityID(P defaultValue) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user