[java-inspections] IDEA-370073 incorrect field type

GitOrigin-RevId: 0c256aef706e7674d123ee2fd00278a7e17a2ccb
This commit is contained in:
Mikhail Pyltsin
2025-04-03 10:17:49 +00:00
committed by intellij-monorepo-bot
parent 1081582c7c
commit ef8332f0fb
2 changed files with 2 additions and 4 deletions
@@ -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,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);