mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
add some notnulls to BaseStream (IDEA-173629)
This commit is contained in:
@@ -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 {}
|
||||
|
||||
Reference in New Issue
Block a user