IDEA-167980 Add quick fix to merge two annotations which are not marked as repeatable

GitOrigin-RevId: 6cc5742354b484ea996ec6a0d2bfa29f3013a08a
This commit is contained in:
Tagir Valeev
2019-05-30 12:07:55 +03:00
committed by intellij-monorepo-bot
parent 73ed3aa311
commit 2ba9a65828
13 changed files with 197 additions and 2 deletions
@@ -0,0 +1,4 @@
// "Collapse repeating annotations" "true"
@SuppressWarnings({"foo", "bar", "baz"})
class X{}
@@ -0,0 +1,10 @@
// "Collapse repeating annotations" "true"
@XYZ(data = {1, 2, 3, 4})
@XYZ(5)
class X{}
@interface XYZ {
int value() default 0;
int[] data();
}
@@ -0,0 +1,4 @@
// "Collapse repeating annotations" "true"
@SuppressWarnings({"foo", "bar", "baz"})
class X{}
@@ -0,0 +1,4 @@
// "Collapse repeating annotations" "true"
@SuppressWarnings({"foo", "bar"})
class X{}
@@ -0,0 +1,5 @@
// "Collapse repeating annotations" "true"
@SuppressWarnings({"foo", "bar"})
@<caret>SuppressWarnings("baz")
class X{}
@@ -0,0 +1,12 @@
// "Collapse repeating annotations" "true"
@X<caret>YZ(data = 1)
@XYZ(data = {2, 3})
@XYZ(data = {4})
@XYZ(5)
class X{}
@interface XYZ {
int value() default 0;
int[] data();
}
@@ -0,0 +1,6 @@
// "Collapse repeating annotations" "true"
@<caret>SuppressWarnings("foo")
@SuppressWarnings("bar")
@SuppressWarnings("baz")
class X{}
@@ -0,0 +1,5 @@
// "Collapse repeating annotations" "true"
@<caret>SuppressWarnings("foo")
@SuppressWarnings("bar")
class X{}