Change KotlinCleanupInspection display name and description to mention deprecated symbols
This commit is contained in:
@@ -3,5 +3,8 @@
|
||||
This inspection is used during the code cleanup operation (Analyze | Code Cleanup) to automatically
|
||||
replace usages of obsolete language features or unnecessarily verbose code constructs with
|
||||
compact and up-to-date syntax.
|
||||
<p>
|
||||
Deprecated symbol usages are also replaced with their proposed substitutions.
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1024,7 +1024,7 @@
|
||||
|
||||
<localInspection implementationClass="org.jetbrains.kotlin.idea.inspections.KotlinCleanupInspection"
|
||||
shortName="KotlinDeprecation"
|
||||
displayName="Usage of redundant or deprecated syntax"
|
||||
displayName="Usage of redundant or deprecated syntax or deprecated symbols"
|
||||
groupName="Kotlin"
|
||||
enabledByDefault="true"
|
||||
cleanupTool="true"
|
||||
|
||||
@@ -43,7 +43,7 @@ import kotlin.properties.Delegates
|
||||
|
||||
public class KotlinCleanupInspection(): LocalInspectionTool(), CleanupLocalInspectionTool {
|
||||
// required to simplify the inspection registration in tests
|
||||
override fun getDisplayName(): String = "Usage of redundant or deprecated syntax"
|
||||
override fun getDisplayName(): String = "Usage of redundant or deprecated syntax or deprecated symbols"
|
||||
|
||||
override fun checkFile(file: PsiFile, manager: InspectionManager, isOnTheFly: Boolean): Array<out ProblemDescriptor>? {
|
||||
if (isOnTheFly || !ProjectRootsUtil.isInProjectSource(file)) {
|
||||
|
||||
Reference in New Issue
Block a user