[java-tests] IDEA-333831 Separate mock JDK and JetBrains annotations for testing

Also: avoid manual mocking of Java 10 classes in StreamCollector10Inlining test, use mockJDK11 instead
Also: rewrite SliceTestCase and its inheritors to LightJavaCodeInsightFixtureTestCase, as annotations.jar is not included into project created by DaemonAnalyzerTestCase
Also: 'mutates' attribute of @Contract annotation is resolvable now, as we can use newer jetbrains-annotations library.
Also: documentation tests now don't generate links to JetBrains annotations, which corresponds to the actual behavior in production

GitOrigin-RevId: e460826893c1277cb2b78b18aae9d5aca97d8333
This commit is contained in:
Tagir Valeev
2023-09-28 18:25:15 +02:00
committed by intellij-monorepo-bot
parent ccd91ed6be
commit aa6829d7c1
54 changed files with 270 additions and 556 deletions

View File

@@ -0,0 +1,20 @@
<root>
<item name='org.jetbrains.annotations.ApiStatus ApiStatus()'>
<annotation name='org.jetbrains.annotations.Contract'>
<val name="value" val="&quot;-&gt;fail&quot;"/>
<val name="pure" val="true"/>
</annotation>
</item>
<item name='org.jetbrains.annotations.Async Async()'>
<annotation name='org.jetbrains.annotations.Contract'>
<val name="value" val="&quot;-&gt;fail&quot;"/>
<val name="pure" val="true"/>
</annotation>
</item>
<item name='org.jetbrains.annotations.Debug Debug()'>
<annotation name='org.jetbrains.annotations.Contract'>
<val name="value" val="&quot;-&gt;fail&quot;"/>
<val name="pure" val="true"/>
</annotation>
</item>
</root>