[pmd-devel] [ pmd-Bugs-3470274 ] Using Label for lines in XMLRenderer
A source code analyzer
Brought to you by:
adangel,
juansotuyo
From: SourceForge.net <no...@so...> - 2012-02-24 10:30:48
|
Bugs item #3470274, was opened at 2012-01-06 06:00 Message generated for change (Comment added) made by rpelisse You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=479921&aid=3470274&group_id=56262 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: cpd Group: None >Status: Closed Resolution: None Priority: 5 Private: No Submitted By: ammerritt () >Assigned to: Romain PELISSE (rpelisse) Summary: Using Label for lines in XMLRenderer Initial Comment: line 59 of XMLRenderer: duplication.setAttribute( "lines", match.getLabel() ); should be: duplication.setAttribute( "lines", match.getLineCount() ); ---------------------------------------------------------------------- >Comment By: Romain PELISSE (rpelisse) Date: 2012-02-24 02:30 Message: Nicely spot. I fixed that and did some refactoring of the class - last time I tweaked it, I left it in a somewhat unfinished state... ---------------------------------------------------------------------- Comment By: ammerritt () Date: 2012-01-06 07:20 Message: Once I grabbed the code I realized match.getLineCount() needed to be wrapped in String.valueOf() ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=479921&aid=3470274&group_id=56262 |