Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/patchMethodParams/beforeEnumSetString.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

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