Hello.

An interface that I am implementing has a method declared in the following
way: byte[]a(byte[]...b);

So, this method accepts a variable number of byte arrays in argument b.

I noticed a yellow line under where I use this method in my code (I pass it
a single byte array to the method in the call), and when I investigate what
the warning is, it says the following:

A primitive array passed to variable-argument method will not be unwrapped
and its items will not be seen as items of the variable-length argument in
the called method. Instead, the array will be passed as a single item.

Being that I am not ready to run the code I am working with, I was
wondering if anyone could clarify to me what the warning means, and whether
I should take any further action other than suppressing the warning.

Thanks,

  Owen.

Reply via email to