[
https://issues.apache.org/jira/browse/KYLIN-4311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17001292#comment-17001292
]
ASF GitHub Bot commented on KYLIN-4311:
---------------------------------------
etherge commented on pull request #1012: KYLIN-4311 fix noncompliant interator
issue in sonar
URL: https://github.com/apache/kylin/pull/1012
JIRA: https://issues.apache.org/jira/browse/KYLIN-4311
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 is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> 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
> Priority: Minor
>
> 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)