Skip to content

Instantly share code, notes, and snippets.

@mcupak
Created November 7, 2017 22:16
Show Gist options
  • Select an option

  • Save mcupak/e288925744383ae3e03e9fd5ceef46e0 to your computer and use it in GitHub Desktop.

Select an option

Save mcupak/e288925744383ae3e03e9fd5ceef46e0 to your computer and use it in GitHub Desktop.
jshell> Stream.of(null)
| Warning:
| non-varargs call of varargs method with inexact argument type for last parameter;
| cast to java.lang.Object for a varargs call
| cast to java.lang.Object[] for a non-varargs call and to suppress this warning
| Stream.of(null)
| ^--^
| java.lang.NullPointerException thrown:
| at Arrays.stream (Arrays.java:5610)
| at Stream.of (Stream.java:1187)
| at (#2:1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment