intellij-quarkus icon indicating copy to clipboard operation
intellij-quarkus copied to clipboard

warning when compiling tests: cast to Object for a varargs call

Open adietish opened this issue 2 years ago • 1 comments

./gradlew clean build

> Task :compileTestJava
/Users/andredietisheim/Documents/jboss-workspaces/intellij-quarkus/intellij-community/platform/external-system-impl/testSrc/com/intellij/openapi/externalSystem/test/ExternalSystemImportingTestCase.java:300: warning: non-varargs call of varargs method with inexact argument type for last parameter;
    assertUnorderedElementsAreEqual(ContainerUtil.map2Array(deps, entry -> entry.getScope()), scopes);
                                                                                              ^
  cast to Object for a varargs call
  cast to Object[] for a non-varargs call and to suppress this warning
/Users/andredietisheim/Documents/jboss-workspaces/intellij-quarkus/intellij-community/platform/external-system-impl/testSrc/com/intellij/openapi/externalSystem/test/ExternalSystemImportingTestCase.java:355: warning: non-varargs call of varargs method with inexact argument type for last parameter;
    assertUnorderedElementsAreEqual(ContainerUtil.map2Array(deps, entry -> entry.getScope()), scopes);
                                                                                              ^
  cast to Object for a varargs call
  cast to Object[] for a non-varargs call and to suppress this warning

adietish avatar Mar 30 '23 08:03 adietish

This is code copied from upstream IJ so I'm afraid you'll have to be very strong to get it fixed

jeffmaury avatar Mar 31 '23 15:03 jeffmaury