mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 18:28:55 +07:00
[intention-preview] CreateRecordFromNewFix: fix 'java.lang.Throwable'
GitOrigin-RevId: 43a4f857410fe1f6c2088f60725c65e34fd73c77
This commit is contained in:
committed by
intellij-monorepo-bot
parent
2467c2b350
commit
e03e35185f
@@ -1,9 +1,9 @@
|
||||
// "Create record 'MyRecord'" "true"
|
||||
// "Create record 'MyRecord'" "true-preview"
|
||||
class Test {
|
||||
void foo () {
|
||||
new MyRecord (1, 2);
|
||||
new MyRecord (1);
|
||||
}
|
||||
}
|
||||
|
||||
public record MyRecord(int i, int i1) {
|
||||
public record MyRecord(int i) {
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
// "Create record 'MyRecord'" "true"
|
||||
// "Create record 'MyRecord'" "true-preview"
|
||||
class Test {
|
||||
void foo () {
|
||||
new <caret>MyRecord (1, 2);
|
||||
new <caret>MyRecord (1);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
public record MyRecord(int i) {
|
||||
}
|
||||
Reference in New Issue
Block a user