diff options
author | Evgeny Mandrikov <mandrikov@gmail.com> | 2012-01-27 02:01:44 +0400 |
---|---|---|
committer | Evgeny Mandrikov <mandrikov@gmail.com> | 2012-01-27 02:01:44 +0400 |
commit | ec1df33232cfe41612c4f402abfa9e3262c65a2d (patch) | |
tree | 44627e10a72094b1c9223e8cfb00a2338c950fcd /plugins/sonar-cpd-plugin/src | |
parent | a0c122748fbacf4a3a57b52206c2f1692380dc69 (diff) | |
download | sonarqube-ec1df33232cfe41612c4f402abfa9e3262c65a2d.tar.gz sonarqube-ec1df33232cfe41612c4f402abfa9e3262c65a2d.zip |
SONAR-3139 Fix wrong refactoring
Diffstat (limited to 'plugins/sonar-cpd-plugin/src')
-rw-r--r-- | plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/SonarEngine.java | 2 |
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); } } |