Kaige Liu created KYLIN-4331:
---------------------------------
Summary: Follow compliant rules in Sonar
Key: KYLIN-4331
URL: https://issues.apache.org/jira/browse/KYLIN-4331
Project: Kylin
Issue Type: Improvement
Reporter: Kaige Liu
Assignee: Kaige Liu
When a method in a child class has the same signature as a method in a parent
class, it is assumed to be an override. However, that's not the case when:
* the parent class method is {{static}} and the child class method is not.
* the arguments or return types of the child method are in different packages
than those of the parent method.
* the parent class method is {{private}}.
Typically, these things are done unintentionally; the private parent class
method is overlooked, the {{static}} keyword in the parent declaration is
overlooked, or the wrong class is imported in the child. But if the intent is
truly for the child class method to be different, then the method should be
renamed to prevent confusion.
[https://sonarcloud.io/project/issues?id=org.apache.kylin%3Akylin&issues=AWP9sMDe3e-qcckjAB5V&open=AWP9sMDe3e-qcckjAB5V]
[https://sonarcloud.io/project/issues?id=org.apache.kylin%3Akylin&issues=AWcaThjuH5xombRgErVV&open=AWcaThjuH5xombRgErVV]
[https://sonarcloud.io/project/issues?id=org.apache.kylin%3Akylin&issues=AWxmA253_Xcr_PhA6-Br&open=AWxmA253_Xcr_PhA6-Br]
[https://sonarcloud.io/project/issues?id=org.apache.kylin%3Akylin&issues=AWxmA253_Xcr_PhA6-Bw&open=AWxmA253_Xcr_PhA6-Bw]
[https://sonarcloud.io/project/issues?id=org.apache.kylin%3Akylin&issues=AWxmA253_Xcr_PhA6-By&open=AWxmA253_Xcr_PhA6-By]
[https://sonarcloud.io/project/issues?id=org.apache.kylin%3Akylin&issues=AWxmA253_Xcr_PhA6-B1&open=AWxmA253_Xcr_PhA6-B1]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)