mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-26 19:06:24 +07:00
More friendly messages for change signature from usage; tests for records (IDEA-244030)
GitOrigin-RevId: 47ea76c9514b26c3e91a1b0e8450169a75b89576
This commit is contained in:
committed by
intellij-monorepo-bot
parent
bbedc3df3b
commit
54dc3625c7
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Add 'int' as 3rd parameter to method 'E'" "true"
|
||||
// "Add 'int' as 3rd parameter to constructor 'E'" "true"
|
||||
enum E {
|
||||
FIRST("a", "b", 1);
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Add 'Foo' as 1st parameter to method 'Bar'" "true"
|
||||
// "Add 'Foo' as 1st parameter to constructor 'Bar'" "true"
|
||||
public class Bar {
|
||||
Bar(Foo foo, String args) {
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Add 'Inner1' as 1st parameter to method 'Inner2'" "true"
|
||||
// "Add 'Inner1' as 1st parameter to constructor 'Inner2'" "true"
|
||||
class CoolTest {
|
||||
class Inner1 {}
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Add 'int' as 3rd parameter to method 'E'" "true"
|
||||
// "Add 'int' as 3rd parameter to constructor 'E'" "true"
|
||||
enum E {
|
||||
FIRST("a", "b", <caret>1);
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Add 'Foo' as 1st parameter to method 'Bar'" "true"
|
||||
// "Add 'Foo' as 1st parameter to constructor 'Bar'" "true"
|
||||
public class Bar {
|
||||
Bar(String args) {
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Add 'Inner1' as 1st parameter to method 'Inner2'" "true"
|
||||
// "Add 'Inner1' as 1st parameter to constructor 'Inner2'" "true"
|
||||
class CoolTest {
|
||||
class Inner1 {}
|
||||
|
||||
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "Add 'int' as 1st record component to record 'R'" "true"
|
||||
record R(int i, int x) {}
|
||||
|
||||
class X {
|
||||
void test() {
|
||||
new R(1, 2);
|
||||
}
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
// "Add 'int' as 1st record component to record 'R'" "true"
|
||||
record R(int i, int x) {
|
||||
R(int i, int x) {
|
||||
this.x = x;
|
||||
}
|
||||
}
|
||||
|
||||
class X {
|
||||
void test() {
|
||||
new R(1, 2);
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "Add 'int' as 1st record component to record 'R'" "true"
|
||||
record R(int x) {}
|
||||
|
||||
class X {
|
||||
void test() {
|
||||
new R(1, <caret>2);
|
||||
}
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
// "Add 'int' as 1st record component to record 'R'" "true"
|
||||
record R(int x) {
|
||||
R(int x) {
|
||||
this.x = x;
|
||||
}
|
||||
}
|
||||
|
||||
class X {
|
||||
void test() {
|
||||
new R(1, <caret>2);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user