[java-i18n] External NonNls annotations for Pattern.matches and kotlin.text.Regex

Fixes IDEA-249154 "Hard Coded Strings" Kotlin regular expressions constructer calls should not be reported

GitOrigin-RevId: 00be640e4a8603f1e820477a2ea0af685eadd1e2
This commit is contained in:
Tagir Valeev
2020-08-27 13:15:17 +07:00
committed by intellij-monorepo-bot
parent 5f2cab16f3
commit c1a00e2079
2 changed files with 9 additions and 0 deletions

View File

@@ -87,6 +87,7 @@
</item>
<item name="java.util.regex.Pattern boolean matches(java.lang.String, java.lang.CharSequence) 0">
<annotation name="org.jetbrains.annotations.NotNull" />
<annotation name='org.jetbrains.annotations.NonNls'/>
</item>
<item name="java.util.regex.Pattern int flags()">
<annotation name="org.intellij.lang.annotations.MagicConstant">

View File

@@ -0,0 +1,8 @@
<root>
<item name='kotlin.text.Regex Regex(java.lang.String) 0'>
<annotation name='org.jetbrains.annotations.NonNls'/>
</item>
<item name='kotlin.text.Regex Regex(java.lang.String, kotlin.text.RegexOption) 0'>
<annotation name='org.jetbrains.annotations.NonNls'/>
</item>
</root>