[java-annotations] java.lang.CharSequence methods are annotated as pure

GitOrigin-RevId: c2f04a10a14cd36ecc731164f40b8fc1b62c8a2b
This commit is contained in:
Tagir Valeev
2024-02-07 19:28:37 +00:00
committed by intellij-monorepo-bot
parent bb4fd15c15
commit cd808051e2
+22 -1
View File
@@ -76,20 +76,41 @@
<val name="to" val="255"/>
</annotation>
</item>
<item name='java.lang.CharSequence boolean isEmpty()'>
<annotation name='org.jetbrains.annotations.Contract'>
<val name="pure" val="true"/>
</annotation>
</item>
<item name='java.lang.CharSequence char charAt(int)'>
<annotation name='org.jetbrains.annotations.Contract'>
<val name="pure" val="true"/>
</annotation>
</item>
<item name='java.lang.CharSequence char charAt(int) 0'>
<annotation name='org.jetbrains.annotations.Range'>
<val name="from" val="0"/>
<val name="to" val="java.lang.Integer.MAX_VALUE-1"/>
</annotation>
</item>
<item name='java.lang.CharSequence int compare(java.lang.CharSequence, java.lang.CharSequence)'>
<annotation name='org.jetbrains.annotations.Contract'>
<val name="pure" val="true"/>
</annotation>
</item>
<item name='java.lang.CharSequence int length()'>
<annotation name='org.jetbrains.annotations.Range'>
<val name="from" val="0"/>
<val name="to" val="java.lang.Integer.MAX_VALUE"/>
</annotation>
</item>
<annotation name='org.jetbrains.annotations.Contract'>
<val name="pure" val="true"/>
</annotation>
</item>
<item name='java.lang.CharSequence java.lang.CharSequence subSequence(int, int)'>
<annotation name='org.jetbrains.annotations.NotNull'/>
<annotation name='org.jetbrains.annotations.Contract'>
<val name="pure" val="true"/>
</annotation>
</item>
<item name='java.lang.CharSequence java.lang.CharSequence subSequence(int, int) 0'>
<annotation name='org.jetbrains.annotations.Range'>