mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
1. Map to supertype if expected is a supertype for actual 2. Do not suggest the replacement when type parameter bounds are violated GitOrigin-RevId: 7784f18fcdb7fdd9541e5c92a211808475f62054
12 lines
216 B
Java
12 lines
216 B
Java
// "Replace 'E2.class' with 'E1.class'" "true-preview"
|
|
import java.util.EnumSet;
|
|
import java.util.Set;
|
|
|
|
public class Demo {
|
|
void test2() {
|
|
Set<E1> set = EnumSet.allOf(E1.class);
|
|
}
|
|
|
|
enum E1 {}
|
|
enum E2 {}
|
|
} |