[ https://issues.jenkins-ci.org/browse/JENKINS-12801?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=159311#comment-159311 ]
Ulli Hafner commented on JENKINS-12801: --------------------------------------- Integrated in !http://faktorzehn.org:8081/images/16x16/blue.png! [Jenkins Analysis Plug-ins (Compile) #398|http://faktorzehn.org:8081/job/Jenkins%20Analysis%20Plug-ins%20(Compile)/398/] [JENKINS-12822] [JENKINS-12801] Added support for columns in warnings. (Revision 5123f0efb7b7b2d9bb26c7970c4e2bd83791746a) 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