[
https://issues.jenkins-ci.org/browse/JENKINS-12801?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=159300#comment-159300
]
dogfood commented on JENKINS-12801:
-----------------------------------
Integrated in !http://ci.jenkins-ci.org/images/16x16/blue.png! [plugins_pmd
#311|http://ci.jenkins-ci.org/job/plugins_pmd/311/]
Result = SUCCESS
> When there are 2 PMD warnings on 1 line the Jenkins report does only report 1
> -----------------------------------------------------------------------------
>
> Key: JENKINS-12801
> URL: https://issues.jenkins-ci.org/browse/JENKINS-12801
> Project: Jenkins
> Issue Type: Bug
> Components: pmd
> Reporter: Cees Bos
> Assignee: Ulli Hafner
> Priority: Minor
>
> We have this line of code:
> {code:java}
> public boolean hasNext()
> {
> return cursor == EMPTY && entity != EMPTY;
> }
> {code}
> PMD xml report has these violations reported:
> {code:xml}
> <violation beginline="216" endline="216" begincolumn="32" endcolumn="46"
> rule="CompareObjectsWithEquals" ruleset="Design Rules"
> package="com.myapplication.util.collections"
> class="SingleSet$SingleSetIterator" method="hasNext"
> externalInfoUrl="http://pmd.sourceforge.net/rules/design.html#CompareObjectsWithEquals"
> priority="3">
> Use equals() to compare object references.
> </violation>
> <violation beginline="216" endline="216" begincolumn="51" endcolumn="65"
> rule="CompareObjectsWithEquals" ruleset="Design Rules"
> package="com.myapplication.util.collections"
> class="SingleSet$SingleSetIterator" method="hasNext"
> externalInfoUrl="http://pmd.sourceforge.net/rules/design.html#CompareObjectsWithEquals"
> priority="3">
> Use equals() to compare object references.
> </violation>
> {code}
> Is reports 2 issues on the same line. Other begincolumn and other endcolumn.
> In the UI it is only reported once.
> And the total number of violations does not match with the actual number of
> violations.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira