mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 15:50:53 +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
11 lines
212 B
Java
11 lines
212 B
Java
// "Replace 'E2.class' with 'String.class'" "false"
|
|
import java.util.EnumSet;
|
|
import java.util.Set;
|
|
|
|
public class Demo {
|
|
void test2() {
|
|
Set<String> set2 = EnumSet.<caret>allOf(E2.class);
|
|
}
|
|
|
|
enum E2 {}
|
|
} |