Add inspection for Integer.toString(i) to i.toString() (KT-12721)

This commit is contained in:
Austaon
2019-03-25 13:09:24 +03:00
committed by Nikolay Krasko
parent dde2b30601
commit efcc6f0967
14 changed files with 170 additions and 0 deletions
@@ -3346,6 +3346,15 @@
language="kotlin"
/>
<localInspection implementationClass="org.jetbrains.kotlin.idea.inspections.ReplaceJavaIntegerToStringWithMemberInspection"
displayName="Replace 'Integer.toString(int)' with 'int.toString()'"
groupPath="Kotlin"
groupName="Style issues"
enabledByDefault="true"
level="WEAK WARNING"
language="kotlin"
/>
<referenceImporter implementation="org.jetbrains.kotlin.idea.quickfix.KotlinReferenceImporter"/>
<fileType.fileViewProviderFactory filetype="KJSM" implementationClass="com.intellij.psi.ClassFileViewProviderFactory"/>