aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-graph
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2014-11-21 11:02:55 +0100
committerJulien HENRY <julien.henry@sonarsource.com>2014-11-21 11:02:55 +0100
commit50050c7ea204110ee4ac3bf59e8f42f510622f12 (patch)
tree58aa3ca674545cdfec4aa91f8481edbaafac6efd /sonar-graph
parentdd04e9f9518e0b84009d21ec5a99bd1f00d796f7 (diff)
downloadsonarqube-50050c7ea204110ee4ac3bf59e8f42f510622f12.tar.gz
sonarqube-50050c7ea204110ee4ac3bf59e8f42f510622f12.zip
Fix some quality flaws
Diffstat (limited to 'sonar-graph')
-rw-r--r--sonar-graph/src/main/java/org/sonar/graph/Dsm.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/sonar-graph/src/main/java/org/sonar/graph/Dsm.java b/sonar-graph/src/main/java/org/sonar/graph/Dsm.java
index 69e85c251da..4d8673d1992 100644
--- a/sonar-graph/src/main/java/org/sonar/graph/Dsm.java
+++ b/sonar-graph/src/main/java/org/sonar/graph/Dsm.java
@@ -49,7 +49,7 @@ public class Dsm<V> {
}
private DsmCell[][] initCells(Set<Edge> feedbackEdges) {
- DsmCell[][] cells = new DsmCell[dimension][dimension];
+ DsmCell[][] result = new DsmCell[dimension][dimension];
for (int x = 0; x < dimension; x++) {
for (int y = 0; y < dimension; y++) {
V from = vertices[x];
@@ -59,21 +59,21 @@ public class Dsm<V> {
if (edge != null) {
atLeastOneDependency = true;
boolean isFeedbackEdge = feedbackEdges.contains(edge);
- cells[x][y] = new DsmCell(edge, isFeedbackEdge);
+ result[x][y] = new DsmCell(edge, isFeedbackEdge);
}
}
}
- return cells;
+ return result;
}
private V[] initVertices(Collection<V> verticesCol) {
- V[] vertices = (V[]) new Object[dimension];
+ V[] result = (V[]) new Object[dimension];
int i = 0;
for (V vertex : verticesCol) {
- vertices[i] = vertex;
+ result[i] = vertex;
i++;
}
- return vertices;
+ return result;
}
public V getVertex(int rowIndex) {