Skip to content

Fix varargs warning in WolfSSLJDK8Helper.java#103

Merged
JacobBarthelmeh merged 1 commit intowolfSSL:masterfrom
cconlon:jdkobjectcast
Jun 15, 2022
Merged

Fix varargs warning in WolfSSLJDK8Helper.java#103
JacobBarthelmeh merged 1 commit intowolfSSL:masterfrom
cconlon:jdkobjectcast

Conversation

@cconlon
Copy link
Copy Markdown
Member

@cconlon cconlon commented Jun 6, 2022

This PR fixes one warning that may show up in WolfSSLJDK8Helper.java:

compile-nativeheaderdir:
    [javac] Compiling 54 source files to /var/lib/jenkins/workspace/nightly-wolfssljni-jsse-extra/wolfjsse_tests/wolfssljni/build
    [javac] /var/lib/jenkins/workspace/nightly-wolfssljni-jsse-extra/wolfjsse_tests/wolfssljni/src/java/com/wolfssl/provider/jsse/adapter/WolfSSLJDK8Helper.java:135: warning: non-varargs call of varargs method with inexact argument type for last parameter;
    [javac]                         m.invoke(out, appProtos);
    [javac]                                       ^
    [javac]   cast to Object for a varargs call
    [javac]   cast to Object[] for a non-varargs call and to suppress this warning
    [javac] 1 warning

@JacobBarthelmeh JacobBarthelmeh merged commit d978cca into wolfSSL:master Jun 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants