mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-10 13:17:09 +07:00
disable create enum constant when not applicable (IDEA-154293)
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
// "Create enum constant 'CRIME'" "false"
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
class AutomaticTypeInference {
|
||||
|
||||
AutomaticTypeInference(List<E> gs) {
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
new AutomaticTypeInference(Arrays.asList(E.ACTION, CRI<caret>ME));
|
||||
|
||||
}
|
||||
|
||||
enum E {
|
||||
ACTION;
|
||||
}
|
||||
}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
// "Create enum constant 'CRIME'" "false"
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
class AutomaticTypeInference {
|
||||
|
||||
AutomaticTypeInference(List<E> gs) {
|
||||
}
|
||||
|
||||
{
|
||||
|
||||
new AutomaticTypeInference(Arrays.asList(E.ACTION, this.CRI<caret>ME));
|
||||
|
||||
}
|
||||
|
||||
enum E {
|
||||
ACTION;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user