mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-15 07:33:30 +07:00
PossibleHeapPollutionVarargs: do not warn on compact constructor; do not warn on record if canonical constructor is present
Review ID: IDEA-CR-56682 GitOrigin-RevId: cdd1ee44e8679a374ff495d852a22c9e612149b8
This commit is contained in:
committed by
intellij-monorepo-bot
parent
586bd6da28
commit
755c4647e2
+7
@@ -0,0 +1,7 @@
|
||||
// "Annotate as @SafeVarargs" "true"
|
||||
record Rec<T>(T... args) {
|
||||
@SafeVarargs
|
||||
public Rec(T... args) {
|
||||
this.args = args;
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// "Annotate as @SafeVarargs" "true"
|
||||
record Rec<T>(T... args) {
|
||||
public R<caret>ec(T... args) {
|
||||
this.args = args;
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// "Annotate as @SafeVarargs" "false"
|
||||
record Re<caret>c<T>(T... args) {
|
||||
public Rec(T... args) {
|
||||
this.args = args;
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// "Annotate as @SafeVarargs" "false"
|
||||
record Rec<T>(T... args) {
|
||||
public R<caret>ec {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user