mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-23 06:51:24 +07:00
[java-highlighting] IDEA-216120 Provide fix for the "Illegal initializer for ..." error
GitOrigin-RevId: edf4f5e72243afe44f0bcbbacd2e753a2e5faf1e
This commit is contained in:
committed by
intellij-monorepo-bot
parent
a2745001a9
commit
430ad9a42a
@@ -0,0 +1,10 @@
|
||||
// "Replace array initializer with its element" "true"
|
||||
class X {
|
||||
|
||||
@interface MyAnnotation {
|
||||
String value();
|
||||
}
|
||||
|
||||
@MyAnnotation(/*1*//*2*/value = "blah")
|
||||
void foo() {}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Replace array initializer with its element" "true"
|
||||
class X {
|
||||
|
||||
@interface MyAnnotation {
|
||||
String value();
|
||||
}
|
||||
|
||||
@MyAnnotation(value = {/*1*/"blah"/*2*/}<caret>)
|
||||
void foo() {}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Replace array initializer with its element" "false"
|
||||
class X {
|
||||
|
||||
@interface MyAnnotation {
|
||||
String value();
|
||||
}
|
||||
|
||||
@MyAnnotation(value = {"one", "two"}<caret>)
|
||||
void foo() {}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Replace array initializer with its element" "false"
|
||||
class X {
|
||||
|
||||
@interface MyAnnotation {
|
||||
String value();
|
||||
}
|
||||
|
||||
@MyAnnotation(value = {}<caret>)
|
||||
void foo() {}
|
||||
}
|
||||
Reference in New Issue
Block a user