9ef89447b3
Before this commit, sealed sub-class without state was considered a style issue. After this commit, sealed sub-class without state AND custom equals is considered a probable bug, because comparison of its instances is very fragile. Alternative fix (generate equals & hashCode by identity) is added.
5 lines
172 B
Plaintext
Vendored
5 lines
172 B
Plaintext
Vendored
{
|
|
"mainFile": "Seal.kt",
|
|
"inspectionClass": "org.jetbrains.kotlin.idea.inspections.CanSealedSubClassBeObjectInspection",
|
|
"fix": "Convert sealed sub-class to object"
|
|
} |