Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/patchMethodParams/afterEnumSet.java
Tagir Valeev 41cbe227c2 [java-intentions] IDEA-299075 Additional fixes
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
2022-08-04 13:37:44 +00:00

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 {}
}