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.
50 lines
2.6 KiB
XML
Vendored
50 lines
2.6 KiB
XML
Vendored
<problems>
|
|
<problem>
|
|
<file>sealed.kt</file>
|
|
<line>8</line>
|
|
<module>light_idea_test_case</module>
|
|
<entry_point TYPE="file" FQNAME="temp:///src/sealed.kt" />
|
|
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Sealed sub-class without state and overridden equals</problem_class>
|
|
<description>Sealed sub-class has no state and no overridden equals</description>
|
|
</problem>
|
|
<problem>
|
|
<file>sealed.kt</file>
|
|
<line>10</line>
|
|
<module>light_idea_test_case</module>
|
|
<entry_point TYPE="file" FQNAME="temp:///src/sealed.kt" />
|
|
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Sealed sub-class without state and overridden equals</problem_class>
|
|
<description>Sealed sub-class has no state and no overridden equals</description>
|
|
</problem>
|
|
<problem>
|
|
<file>sealed.kt</file>
|
|
<line>13</line>
|
|
<module>light_idea_test_case</module>
|
|
<entry_point TYPE="file" FQNAME="temp:///src/sealed.kt" />
|
|
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Sealed sub-class without state and overridden equals</problem_class>
|
|
<description>Sealed sub-class has no state and no overridden equals</description>
|
|
</problem>
|
|
<problem>
|
|
<file>sealed.kt</file>
|
|
<line>15</line>
|
|
<module>light_idea_test_case</module>
|
|
<entry_point TYPE="file" FQNAME="temp:///src/sealed.kt" />
|
|
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Sealed sub-class without state and overridden equals</problem_class>
|
|
<description>Sealed sub-class has no state and no overridden equals</description>
|
|
</problem>
|
|
<problem>
|
|
<file>sealed.kt</file>
|
|
<line>41</line>
|
|
<module>light_idea_test_case</module>
|
|
<entry_point TYPE="file" FQNAME="temp:///src/sealed.kt" />
|
|
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Sealed sub-class without state and overridden equals</problem_class>
|
|
<description>Sealed sub-class has no state and no overridden equals</description>
|
|
</problem>
|
|
<problem>
|
|
<file>sealed.kt</file>
|
|
<line>45</line>
|
|
<module>light_idea_test_case</module>
|
|
<entry_point TYPE="file" FQNAME="temp:///src/sealed.kt" />
|
|
<problem_class severity="WEAK WARNING" attribute_key="INFO_ATTRIBUTES">Sealed sub-class without state and overridden equals</problem_class>
|
|
<description>Sealed sub-class has no state and no overridden equals</description>
|
|
</problem>
|
|
</problems> |