Refactoring: make "replace array equality ..." an inspection

This commit is contained in:
Mikhail Glukhikh
2017-12-18 18:23:29 +03:00
parent 33d94cd5e1
commit 756cb32eaf
19 changed files with 123 additions and 128 deletions
@@ -5,7 +5,7 @@
<module>light_idea_test_case</module>
<entry_point TYPE="file" FQNAME="temp:///src/test.kt"/>
<problem_class severity="WARNING" attribute_key="NOT_USED_ELEMENT_ATTRIBUTES">Replace '==' with 'Arrays.equals'</problem_class>
<description>Replace '==' with 'contentEquals'</description>
<description>Dangerous array comparison</description>
</problem>
<problem>
<file>test.kt</file>
@@ -13,6 +13,6 @@
<module>light_idea_test_case</module>
<entry_point TYPE="file" FQNAME="temp:///src/test.kt"/>
<problem_class severity="WARNING" attribute_key="NOT_USED_ELEMENT_ATTRIBUTES">Replace '!=' with 'Arrays.equals'</problem_class>
<description>Replace '!=' with 'contentEquals'</description>
<description>Dangerous array comparison</description>
</problem>
</problems>