IDEA-216120: fixes after review

GitOrigin-RevId: 44435772a108dc0a9edad4e56a00a27cc2f91efc
This commit is contained in:
Andrey.Cherkasov
2021-03-26 03:00:40 +03:00
committed by intellij-monorepo-bot
parent 68df252efd
commit 455a130ac2
29 changed files with 271 additions and 22 deletions

View File

@@ -1,4 +1,4 @@
// "Replace array initializer with its element" "true"
// "Unwrap '"blah"'" "true"
class X {
@interface MyAnnotation {

View File

@@ -0,0 +1,6 @@
// "Unwrap '"blah"'" "true"
class X {
@interface MyAnnotation {
String value() default /*1*/ /*2*/ "blah";
}
}

View File

@@ -1,4 +1,4 @@
// "Replace array initializer with its element" "true"
// "Unwrap '"blah"'" "true"
class X {
@interface MyAnnotation {

View File

@@ -1,4 +1,4 @@
// "Replace array initializer with its element" "false"
// "Unwrap '"one"'" "false"
class X {
@interface MyAnnotation {

View File

@@ -0,0 +1,6 @@
// "Unwrap '"blah"'" "true"
class X {
@interface MyAnnotation {
String value() default {/*1*/"blah"/*2*/}<caret>;
}
}

View File

@@ -0,0 +1,6 @@
// "Unwrap '"one"'" "false"
class X {
@interface MyAnnotation {
String value() default {"one", "two"}<caret>;
}
}

View File

@@ -0,0 +1,6 @@
// "Unwrap '"blah"'" "false"
class X {
@interface MyAnnotation {
int value() default {"blah"}<caret>;
}
}

View File

@@ -1,10 +0,0 @@
// "Replace array initializer with its element" "false"
class X {
@interface MyAnnotation {
String value();
}
@MyAnnotation(value = {}<caret>)
void foo() {}
}

View File

@@ -0,0 +1,10 @@
// "Unwrap '"blah"'" "false"
class X {
@interface MyAnnotation {
int value();
}
@MyAnnotation(value = {"blah"}<caret>)
void foo() {}
}