가변 인자 매개변수 위치에서 호출이 기본 배열을 갖는 가변 인자 메서드 호출을 보고합니다. Such a primitive-array argument may be confusing, as it will be wrapped in a single-element array argument, rather than each element being a separate argument, as may be expected.

예:


  String.format("%s", new int[]{1, 2, 3});

빠른 수정을 적용한 후:


  String.format("%s", (Object) new int[]{1, 2, 3});