aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-graph
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-graph')
-rw-r--r--sonar-graph/src/main/java/org/sonar/graph/IncrementalCyclesAndFESSolver.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-graph/src/main/java/org/sonar/graph/IncrementalCyclesAndFESSolver.java b/sonar-graph/src/main/java/org/sonar/graph/IncrementalCyclesAndFESSolver.java
index 7837af3b5e9..9f11a68b8ee 100644
--- a/sonar-graph/src/main/java/org/sonar/graph/IncrementalCyclesAndFESSolver.java
+++ b/sonar-graph/src/main/java/org/sonar/graph/IncrementalCyclesAndFESSolver.java
@@ -55,7 +55,7 @@ public class IncrementalCyclesAndFESSolver<V> {
cycles.addAll(cycleDetector.getCycles());
solver = new MinimumFeedbackEdgeSetSolver(cycles);
edgesToExclude = solver.getEdges();
- } while (cycleDetector.getCycles().size() != 0);
+ } while (!cycleDetector.getCycles().isEmpty());
}
public int getWeightOfFeedbackEdgeSet() {