mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-4384 Refactorings should obey "align when multiline"
1. Method parameters/method call arguments are reformatted during method return type/name/modifiers change now (corresponding logic is added at PSI level); 2. Corresponding tests are added;
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
public class Test {
|
||||
public void <caret>test123(int i,
|
||||
int j) {
|
||||
}
|
||||
|
||||
public void foo() {
|
||||
test123(1,
|
||||
2);
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
public class Test {
|
||||
public void test123asd(int i,
|
||||
int j) {
|
||||
}
|
||||
|
||||
public void foo() {
|
||||
test123asd(1,
|
||||
2);
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
public class Test {
|
||||
public String <caret>test123(int i,
|
||||
int j) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
public class Test {
|
||||
public Exception test123(int i,
|
||||
int j) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
public class Test {
|
||||
public void <caret>test123(int i,
|
||||
int j) {
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
public class Test {
|
||||
protected void test123(int i,
|
||||
int j) {
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
public class Test {
|
||||
public static void test123(int i,
|
||||
int j) {
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
public class Test {
|
||||
public void <caret>test123(int i,
|
||||
int j) {
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
public class AlignedMultilineParameters {
|
||||
|
||||
public void test123asd(int i,
|
||||
int j) {
|
||||
}
|
||||
|
||||
public void foo() {
|
||||
test123asd(1,
|
||||
2);
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
public class AlignedMultilineParameters {
|
||||
|
||||
public void test123(int i,
|
||||
int j) {
|
||||
}
|
||||
|
||||
public void foo() {
|
||||
test123(1,
|
||||
2);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user