Add Inspection for lateinit var overrides another lateinit var
#KT-30775 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
fbd992f8c7
commit
4b4be07942
@@ -3408,6 +3408,15 @@
|
||||
language="kotlin"
|
||||
/>
|
||||
|
||||
<localInspection implementationClass="org.jetbrains.kotlin.idea.inspections.LateinitVarOverridesLateinitVarInspection"
|
||||
displayName="lateinit var property overrides lateinit var property"
|
||||
groupPath="Kotlin"
|
||||
groupName="Probable bugs"
|
||||
enabledByDefault="true"
|
||||
level="WARNING"
|
||||
language="kotlin"
|
||||
/>
|
||||
|
||||
<referenceImporter implementation="org.jetbrains.kotlin.idea.quickfix.KotlinReferenceImporter"/>
|
||||
|
||||
<fileType.fileViewProviderFactory filetype="KJSM" implementationClass="com.intellij.psi.ClassFileViewProviderFactory"/>
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
This inspection reports when one lateinit var property overrides another lateinit var property.
|
||||
An instance of a subclass will have two fields for the single property and the one from a superclass remains effectively unused.
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user