mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[java-inspections] IDEA-370073 incorrect field type
GitOrigin-RevId: 0c256aef706e7674d123ee2fd00278a7e17a2ccb
This commit is contained in:
committed by
intellij-monorepo-bot
parent
1081582c7c
commit
ef8332f0fb
+1
-2
@@ -1,10 +1,9 @@
|
||||
// "Create constant field 'MODULE' in 'Usage'" "true"
|
||||
class Usage {
|
||||
|
||||
private static final Object MODULE = ;
|
||||
|
||||
void usage() {
|
||||
switch (type) {
|
||||
switch (null) {
|
||||
case CLASS -> symbols.add(1);
|
||||
case INTERFACE -> symbols.add(2);
|
||||
case MODULE -> symbols.add(42);
|
||||
|
||||
+1
-2
@@ -1,8 +1,7 @@
|
||||
// "Create constant field 'MODULE' in 'Usage'" "true"
|
||||
class Usage {
|
||||
|
||||
void usage() {
|
||||
switch (type) {
|
||||
switch (null) {
|
||||
case CLASS -> symbols.add(1);
|
||||
case INTERFACE -> symbols.add(2);
|
||||
case <caret>MODULE -> symbols.add(42);
|
||||
|
||||
Reference in New Issue
Block a user