mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +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 {}
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
<root>
|
||||
<item name='java.util.stream.BaseStream S onClose(java.lang.Runnable)'>
|
||||
<annotation name='org.jetbrains.annotations.NotNull'/>
|
||||
</item>
|
||||
<item name='java.util.stream.BaseStream S parallel()'>
|
||||
<annotation name='org.jetbrains.annotations.NotNull'/>
|
||||
</item>
|
||||
<item name='java.util.stream.BaseStream S sequential()'>
|
||||
<annotation name='org.jetbrains.annotations.NotNull'/>
|
||||
</item>
|
||||
<item name='java.util.stream.BaseStream S unordered()'>
|
||||
<annotation name='org.jetbrains.annotations.NotNull'/>
|
||||
</item>
|
||||
<item name='java.util.stream.BaseStream java.util.Iterator<T> iterator()'>
|
||||
<annotation name='org.jetbrains.annotations.NotNull'/>
|
||||
</item>
|
||||
<item name='java.util.stream.BaseStream java.util.Spliterator<T> spliterator()'>
|
||||
<annotation name='org.jetbrains.annotations.NotNull'/>
|
||||
</item>
|
||||
</root>
|
||||
Reference in New Issue
Block a user