Java: don't report redundant cast on primitive array argument to vararg method (IDEA-273298)

GitOrigin-RevId: 938943d615f628bffe7fe493cfc5f408ff3592d0
This commit is contained in:
Bas Leijdekkers
2025-04-12 16:28:13 +00:00
committed by intellij-monorepo-bot
parent fdde91f28d
commit 3d6b0b432c
5 changed files with 62 additions and 43 deletions
@@ -30,6 +30,8 @@ public class PrimitiveArrayArgumentToVariableArgMethod
void foo(byte[] bs) {
final X<byte[]> x = new X<byte[]>();
x.method(bs);
final X<Object> y = new X<Object>();
y.method(<warning descr="Confusing primitive array argument to varargs method">bs</warning>);
}
void m() {