add some notnulls to BaseStream (IDEA-173629)

This commit is contained in:
peter
2017-06-09 16:41:00 +02:00
parent cf859b4b53
commit dceb40cf32
2 changed files with 25 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.Arrays;
interface NonnullInterface {
@NotNull
@@ -32,6 +33,10 @@ class P2 {
boolean getPrimitive() { return true; }
private void test(final NonnullInterface function) { }
private Iterable<String> arrayToIterable(String... array) {
return Arrays.stream(array)::iterator;
}
}
class WithImplicitConstructor {}