aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sonar-cpd-plugin
diff options
context:
space:
mode:
authorEvgeny Mandrikov <mandrikov@gmail.com>2012-01-27 02:01:44 +0400
committerEvgeny Mandrikov <mandrikov@gmail.com>2012-01-27 02:01:44 +0400
commitec1df33232cfe41612c4f402abfa9e3262c65a2d (patch)
tree44627e10a72094b1c9223e8cfb00a2338c950fcd /plugins/sonar-cpd-plugin
parenta0c122748fbacf4a3a57b52206c2f1692380dc69 (diff)
downloadsonarqube-ec1df33232cfe41612c4f402abfa9e3262c65a2d.tar.gz
sonarqube-ec1df33232cfe41612c4f402abfa9e3262c65a2d.zip
SONAR-3139 Fix wrong refactoring
Diffstat (limited to 'plugins/sonar-cpd-plugin')
-rw-r--r--plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/SonarEngine.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/SonarEngine.java b/plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/SonarEngine.java
index d686be84438..7fe2852931f 100644
--- a/plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/SonarEngine.java
+++ b/plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/SonarEngine.java
@@ -176,7 +176,7 @@ public class SonarEngine extends CpdEngine {
for (ClonePart part : clone.getCloneParts()) {
if (part.getResourceId().equals(origin.getResourceId())) {
duplicatedBlocks++;
- for (int duplicatedLine = part.getStartLine(); duplicatedLine < part.getEndLine() + part.getLines(); duplicatedLine++) {
+ for (int duplicatedLine = part.getStartLine(); duplicatedLine < part.getStartLine() + part.getLines(); duplicatedLine++) {
duplicatedLines.add(duplicatedLine);
}
}