Has platform type inspection is now intention-based

(cherry picked from commit 7cc6b9b)
This commit is contained in:
Mikhail Glukhikh
2016-06-20 17:38:12 +03:00
committed by Mikhail Glukhikh
parent a68e8e0db5
commit 70becfbd86
5 changed files with 54 additions and 57 deletions
@@ -5,7 +5,7 @@
<module>light_idea_test_case</module>
<entry_point TYPE="file" FQNAME="temp:///src/function.kt" />
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Function, property or variable has platform type.</problem_class>
<description>Function has platform type. Make the type explicit to prevent subtle bugs.</description>
<description>Declaration has platform type. Make the type explicit to prevent subtle bugs.</description>
</problem>
<problem>
<file>function.kt</file>
@@ -13,7 +13,7 @@
<module>light_idea_test_case</module>
<entry_point TYPE="file" FQNAME="temp:///src/function.kt" />
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Function or property has platform type</problem_class>
<description>Function has platform type. Make the type explicit to prevent subtle bugs.</description>
<description>Declaration has platform type. Make the type explicit to prevent subtle bugs.</description>
</problem>
<problem>
<file>property1.kt</file>
@@ -21,7 +21,7 @@
<module>light_idea_test_case</module>
<entry_point TYPE="file" FQNAME="temp:///src/property1.kt" />
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Function, property or variable has platform type.</problem_class>
<description>Property has platform type. Make the type explicit to prevent subtle bugs.</description>
<description>Declaration has platform type. Make the type explicit to prevent subtle bugs.</description>
</problem>
<problem>
<file>property2.kt</file>
@@ -29,6 +29,6 @@
<module>light_idea_test_case</module>
<entry_point TYPE="file" FQNAME="temp:///src/property2.kt" />
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Function, property or variable has platform type.</problem_class>
<description>Property has platform type. Make the type explicit to prevent subtle bugs.</description>
<description>Declaration has platform type. Make the type explicit to prevent subtle bugs.</description>
</problem>
</problems>
@@ -3,6 +3,5 @@
// ACTION: Convert to block body
// ACTION: Create test
// ACTION: Specify return type explicitly
// ACTION: Specify return type explicitly
fun foo<caret>() = arrayOf(java.lang.String.valueOf(1))