False positive on squid:S2275

Hello @ShioT,

I’m confused, when I run the first example, I have an error and I can not even compile the second one.
Is IntStream indeed from java.util.stream? Am I missing something?

That being said, I agree that String.format supports arrays as argument, so

String.format("%d and %d", getArray()); // S2275: not enough arguments. FP

Object[] getArray() {
  return new Object[]{1,2};
}

should not raise an issue.

I will probably create a ticket once we figure out what I missed from the initial post.