SortContentAction: replace with proper annotation member value instead of expression : IDEA-224254

GitOrigin-RevId: 687fc8771babc84d3ebc07ad4fe04c4543fed36e
This commit is contained in:
Roman.Ivanov
2019-10-08 10:01:33 +00:00
committed by intellij-monorepo-bot
parent 2a3a1f57a5
commit 9b798e3ece
3 changed files with 72 additions and 20 deletions
@@ -0,0 +1,19 @@
// "Sort content" "true"
interface A {
// @formatter:off
int TO_UPPER = 0;
int TO_LOWER = 1;
int DO_NOT_CHANGE = 2;
int TO_TITLE = 5;
@Anno(intValues = {TO_UPPER,TO_LOWER,DO_NOT_CHANGE,TO_TITLE})
void foo();
@interface Anno {
int[] intValues();
}
}
@@ -0,0 +1,19 @@
// "Sort content" "true"
interface A {
// @formatter:off
int TO_UPPER = 0;
int TO_LOWER = 1;
int DO_NOT_CHANGE = 2;
int TO_TITLE = 5;
@Anno(intValues = {TO_UPPER, <caret>TO_LOWER, TO_TITLE, DO_NOT_CHANGE})
void foo();
@interface Anno {
int[] intValues();
}
}