aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-graph/src/main/java
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2011-03-27 21:26:17 +0200
committersimonbrandhof <simon.brandhof@gmail.com>2011-03-27 21:26:17 +0200
commit2b560c35ab24a4f7db27d7e180a64e830b9a56a1 (patch)
tree59318ddf4d2e78688a7fa2ced83b37f921f6eac8 /sonar-graph/src/main/java
parent9559e69e14d6123c3e03335e7d9b416cbac5e576 (diff)
downloadsonarqube-2b560c35ab24a4f7db27d7e180a64e830b9a56a1.tar.gz
sonarqube-2b560c35ab24a4f7db27d7e180a64e830b9a56a1.zip
fix coding violations
Diffstat (limited to 'sonar-graph/src/main/java')
-rw-r--r--sonar-graph/src/main/java/org/sonar/graph/Cycle.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-graph/src/main/java/org/sonar/graph/Cycle.java b/sonar-graph/src/main/java/org/sonar/graph/Cycle.java
index 0e781641f77..ce1e87b3cf3 100644
--- a/sonar-graph/src/main/java/org/sonar/graph/Cycle.java
+++ b/sonar-graph/src/main/java/org/sonar/graph/Cycle.java
@@ -27,7 +27,7 @@ public class Cycle {
private int hashcode = 0;
public Cycle(List<Edge> edges) {
- this.edges = edges.toArray(new Edge[0]);
+ this.edges = edges.toArray(new Edge[edges.size()]);
for(Edge edge : edges) {
hashcode += edge.hashCode();
}