KT-2609 Copy @NotNull data from IDEA's JDK annotations

#KT-2609 fixed
This commit is contained in:
Evgeny Gerashchenko
2012-09-03 20:26:47 +04:00
parent 743e8af7c2
commit 7b1979ddca
4 changed files with 120 additions and 0 deletions
+16
View File
@@ -751,4 +751,20 @@
<val name="value" val="&quot;fun clone() : Any&quot;"/>
</annotation>
</item>
<item name='java.util.Arrays java.util.List&lt;T&gt; asList(T...)'>
<annotation name='jet.runtime.typeinfo.KotlinSignature'>
<val name="value" val="&quot;fun &lt;T&gt; asList(vararg a : T) : List&lt;T&gt;&quot;"/>
</annotation>
</item>
<item name='java.util.Arrays void sort(T[], java.util.Comparator&lt;? super T&gt;)'>
<annotation name='jet.runtime.typeinfo.KotlinSignature'>
<val name="value"
val="&quot;fun &lt;T&gt; sort(a : Array&lt;out T?&gt;, c : Comparator&lt;in T&gt;?) : Unit&quot;"/>
</annotation>
</item>
<item name='java.util.Arrays void sort(java.lang.Object[])'>
<annotation name='jet.runtime.typeinfo.KotlinSignature'>
<val name="value" val="&quot;fun sort(a : Array&lt;out Any?&gt;) : Unit&quot;"/>
</annotation>
</item>
</root>
@@ -0,0 +1,22 @@
<root>
<item name='java.util.concurrent.ConcurrentMap V putIfAbsent(K, V)'>
<annotation name='jet.runtime.typeinfo.KotlinSignature'>
<val name="value" val="&quot;fun putIfAbsent(key : K, value : V) : V?&quot;"/>
</annotation>
</item>
<item name='java.util.concurrent.ConcurrentMap boolean remove(java.lang.Object, java.lang.Object)'>
<annotation name='jet.runtime.typeinfo.KotlinSignature'>
<val name="value" val="&quot;fun remove(key : Any, value : Any?) : Boolean&quot;"/>
</annotation>
</item>
<item name='java.util.concurrent.ConcurrentMap boolean replace(K, V, V)'>
<annotation name='jet.runtime.typeinfo.KotlinSignature'>
<val name="value" val="&quot;fun replace(key : K, oldValue : V, newValue : V) : Boolean&quot;"/>
</annotation>
</item>
<item name='java.util.concurrent.ConcurrentMap V replace(K, V)'>
<annotation name='jet.runtime.typeinfo.KotlinSignature'>
<val name="value" val="&quot;fun replace(key : K, value : V) : V?&quot;"/>
</annotation>
</item>
</root>