diff options
Diffstat (limited to 'sonar-graph/src/main/java/org/sonar/graph/FeedbackCycle.java')
-rw-r--r-- | sonar-graph/src/main/java/org/sonar/graph/FeedbackCycle.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sonar-graph/src/main/java/org/sonar/graph/FeedbackCycle.java b/sonar-graph/src/main/java/org/sonar/graph/FeedbackCycle.java index 43125a0e932..81de9669e43 100644 --- a/sonar-graph/src/main/java/org/sonar/graph/FeedbackCycle.java +++ b/sonar-graph/src/main/java/org/sonar/graph/FeedbackCycle.java @@ -87,10 +87,12 @@ public final class FeedbackCycle implements Iterable<FeedbackEdge>, Comparable<F return totalOccurrencesOfEdgesInCycle; } + @Override public Iterator<FeedbackEdge> iterator() { return orderedFeedbackEdges.iterator(); } + @Override public int compareTo(FeedbackCycle feedbackCycle) { if (getTotalOccurrencesOfEdgesInCycle() < feedbackCycle.getTotalOccurrencesOfEdgesInCycle()) {//NOSONAR this class has a natural ordering that is inconsistent with equals return -1; |