Kaige Liu created KYLIN-4311:
---------------------------------

             Summary: Fix bugs in Sonar to be compliant
                 Key: KYLIN-4311
                 URL: https://issues.apache.org/jira/browse/KYLIN-4311
             Project: Kylin
          Issue Type: Improvement
            Reporter:  Kaige Liu
            Assignee:  Kaige Liu


By contract, any implementation of the {{java.util.Iterator.next()}} method 
should throw a {{NoSuchElementException}} exception when the iteration has no 
more elements. Any other behavior when the iteration is done could lead to 
unexpected behavior for users of this {{Iterator}}.

 

[https://sonarcloud.io/project/issues?id=org.apache.kylin%3Akylin&issues=AWExwNw9ikuHJGLsvan_&open=AWExwNw9ikuHJGLsvan_]

[https://sonarcloud.io/project/issues?id=org.apache.kylin%3Akylin&issues=AWExwNxOikuHJGLsvaoZ&open=AWExwNxOikuHJGLsvaoZ]

[https://sonarcloud.io/project/issues?id=org.apache.kylin%3Akylin&issues=AWExwOHQikuHJGLsvbDO&open=AWExwOHQikuHJGLsvbDO]

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to