summaryrefslogtreecommitdiffstats
path: root/sonar-duplications
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-duplications')
-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);