You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Anthony Baker (JIRA)" <ji...@apache.org> on 2016/01/08 04:46:39 UTC

[jira] [Updated] (GEODE-264) Fix varargs compiler warnings

     [ https://issues.apache.org/jira/browse/GEODE-264?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Anthony Baker updated GEODE-264:
--------------------------------
    Assignee: Anthony Baker

> Fix varargs compiler warnings
> -----------------------------
>
>                 Key: GEODE-264
>                 URL: https://issues.apache.org/jira/browse/GEODE-264
>             Project: Geode
>          Issue Type: Bug
>          Components: tests
>    Affects Versions: 1.0.0-incubating
>            Reporter: Anthony Baker
>            Assignee: Anthony Baker
>            Priority: Trivial
>             Fix For: 1.0.0-incubating
>
>
> Several test classes generate warnings that should be cleaned up.
> {noformat}
> /Users/abaker/code/incubator-geode/gemfire-core/src/test/java/com/gemstone/gemfire/internal/compression/SnappyCompressorJUnitTest.java:57: warning: non-varargs call of varargs method with inexact argument type for last parameter;
>     File nativeLibrary = (File) findNativeLibraryMethod.invoke(null, null);
>                                                                      ^
>   cast to Object for a varargs call
>   cast to Object[] for a non-varargs call and to suppress this warning
> /Users/abaker/code/incubator-geode/gemfire-core/src/test/java/dunit/standalone/DUnitLauncher.java:107: warning: non-varargs call of varargs method with inexact argument type for last parameter;
>       getInstance.invoke(null, null);
>                                ^
>   cast to Object for a varargs call
>   cast to Object[] for a non-varargs call and to suppress this warning
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)