mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 18:09:38 +07:00
inference: raise unchecked warning if low/equals bounds are not assignable without unchecked conversion (IDEA-150495)
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
|
||||
import java.util.HashSet;
|
||||
|
||||
class Issue {
|
||||
public void some(String group) {
|
||||
new HashSet<Permission>().stream()
|
||||
.map(permission -> (PrincipalPermission) permission)
|
||||
.filter(permission -> group.equals(permission.getGroup()));
|
||||
}
|
||||
}
|
||||
|
||||
class Permission {
|
||||
}
|
||||
|
||||
class PrincipalPermission<<warning descr="Type parameter 'T' is never used">T</warning>> extends Permission {
|
||||
public String getGroup() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user