mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IDEA-167980 Add quick fix to merge two annotations which are not marked as repeatable
GitOrigin-RevId: 6cc5742354b484ea996ec6a0d2bfa29f3013a08a
This commit is contained in:
committed by
intellij-monorepo-bot
parent
73ed3aa311
commit
2ba9a65828
+4
@@ -0,0 +1,4 @@
|
||||
// "Collapse repeating annotations" "true"
|
||||
|
||||
@SuppressWarnings({"foo", "bar", "baz"})
|
||||
class X{}
|
||||
+10
@@ -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();
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
// "Collapse repeating annotations" "true"
|
||||
|
||||
@SuppressWarnings({"foo", "bar", "baz"})
|
||||
class X{}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
// "Collapse repeating annotations" "true"
|
||||
|
||||
@SuppressWarnings({"foo", "bar"})
|
||||
class X{}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// "Collapse repeating annotations" "true"
|
||||
|
||||
@SuppressWarnings({"foo", "bar"})
|
||||
@<caret>SuppressWarnings("baz")
|
||||
class X{}
|
||||
+12
@@ -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();
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// "Collapse repeating annotations" "true"
|
||||
|
||||
@<caret>SuppressWarnings("foo")
|
||||
@SuppressWarnings("bar")
|
||||
@SuppressWarnings("baz")
|
||||
class X{}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// "Collapse repeating annotations" "true"
|
||||
|
||||
@<caret>SuppressWarnings("foo")
|
||||
@SuppressWarnings("bar")
|
||||
class X{}
|
||||
Reference in New Issue
Block a user