aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-duplications/src/main
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2015-06-29 15:53:56 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2015-06-29 19:01:12 +0200
commit501289ca85e1c8dd21d5e0ba5f457b40ee62f5ef (patch)
treeba5b06c4357edb58ec3f248c6fa12324c1ec71ca /sonar-duplications/src/main
parentfcf0d15e049e9c6e647fae628dc0e2bc17d078b6 (diff)
downloadsonarqube-501289ca85e1c8dd21d5e0ba5f457b40ee62f5ef.tar.gz
sonarqube-501289ca85e1c8dd21d5e0ba5f457b40ee62f5ef.zip
Quality flaws
- do not declare multiple variables on same line - fix imports
Diffstat (limited to 'sonar-duplications/src/main')
-rw-r--r--sonar-duplications/src/main/java/org/sonar/duplications/detector/ContainsInComparator.java3
-rw-r--r--sonar-duplications/src/main/java/org/sonar/duplications/detector/suffixtree/Node.java3
2 files changed, 4 insertions, 2 deletions
diff --git a/sonar-duplications/src/main/java/org/sonar/duplications/detector/ContainsInComparator.java b/sonar-duplications/src/main/java/org/sonar/duplications/detector/ContainsInComparator.java
index 9d93f9f0958..31440cf98c9 100644
--- a/sonar-duplications/src/main/java/org/sonar/duplications/detector/ContainsInComparator.java
+++ b/sonar-duplications/src/main/java/org/sonar/duplications/detector/ContainsInComparator.java
@@ -55,7 +55,8 @@ public final class ContainsInComparator implements Comparator<ClonePart> {
}
};
- private final int l1, l2;
+ private final int l1;
+ private final int l2;
/**
* Constructs new comparator for two parts with lengths {@code l1} and {@code l2} respectively.
diff --git a/sonar-duplications/src/main/java/org/sonar/duplications/detector/suffixtree/Node.java b/sonar-duplications/src/main/java/org/sonar/duplications/detector/suffixtree/Node.java
index c6a95c9cae1..ac7cff51e8c 100644
--- a/sonar-duplications/src/main/java/org/sonar/duplications/detector/suffixtree/Node.java
+++ b/sonar-duplications/src/main/java/org/sonar/duplications/detector/suffixtree/Node.java
@@ -45,7 +45,8 @@ public final class Node {
*/
int depth;
- int startSize, endSize;
+ int startSize;
+ int endSize;
public Node(Node node, Node suffixNode) {
this(node.suffixTree, suffixNode);