aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-graph/src/main/java/org/sonar/graph/Dsm.java
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-graph/src/main/java/org/sonar/graph/Dsm.java')
-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) {