Report "use of non-const Kotlin property" also on Java case labels
#KT-25536 Fixed
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
<module>First</module>
|
||||
<package><default></package>
|
||||
<entry_point TYPE="file" FQNAME="JavaUser.java" />
|
||||
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Kotlin non-const property used as annotation argument</problem_class>
|
||||
<description>Use of @JvmField non-const Kotlin property as annotation argument is incorrect. Will be forbidden in 1.3</description>
|
||||
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Kotlin non-const property used as Java constant</problem_class>
|
||||
<description>Use of non-const Kotlin property as Java constant is incorrect. Will be forbidden in 1.4</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>JavaUser.java</file>
|
||||
@@ -14,7 +14,16 @@
|
||||
<module>First</module>
|
||||
<package><default></package>
|
||||
<entry_point TYPE="file" FQNAME="JavaUser.java" />
|
||||
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Kotlin non-const property used as annotation argument</problem_class>
|
||||
<description>Use of @JvmField non-const Kotlin property as annotation argument is incorrect. Will be forbidden in 1.3</description>
|
||||
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Kotlin non-const property used as Java constant</problem_class>
|
||||
<description>Use of non-const Kotlin property as Java constant is incorrect. Will be forbidden in 1.4</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>JavaUser.java</file>
|
||||
<line>17</line>
|
||||
<module>First</module>
|
||||
<package><default></package>
|
||||
<entry_point TYPE="method" FQNAME="JavaUser void baz(java.lang.String z)" />
|
||||
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Kotlin non-const property used as Java constant</problem_class>
|
||||
<description>Use of non-const Kotlin property as Java constant is incorrect. Will be forbidden in 1.4</description>
|
||||
</problem>
|
||||
</problems>
|
||||
|
||||
Reference in New Issue
Block a user