summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrik Lynggaard Hansen2012-06-29 13:33:12 (EDT)
committer Henrik Lynggaard Hansen2012-06-29 13:33:12 (EDT)
commitd9eebef349bfc6dc4bdc2fb652f689848fc6a661 (patch)
treef6e40e7cc49119833c780ea2172e4fb3eda39fce
parentff36d0a9fed35303352ac7716fb2418a6fe6fc1d (diff)
downloadorg.eclipse.hudson.core-d9eebef349bfc6dc4bdc2fb652f689848fc6a661.zip
org.eclipse.hudson.core-d9eebef349bfc6dc4bdc2fb652f689848fc6a661.tar.gz
org.eclipse.hudson.core-d9eebef349bfc6dc4bdc2fb652f689848fc6a661.tar.bz2
Convert integer style loop to iterator style.refs/changes/54/6554/1
Removes Sonar warning: "Method org.eclipse.hudson.graph.MultiStageTimeSeries$TrendChart.createDataset() uses integer based for loops to iterate over a List." Change-Id: I1283996e72c4a5bc4bef2e19a054b685db584153
-rw-r--r--hudson-core/src/main/java/org/eclipse/hudson/graph/MultiStageTimeSeries.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/hudson-core/src/main/java/org/eclipse/hudson/graph/MultiStageTimeSeries.java b/hudson-core/src/main/java/org/eclipse/hudson/graph/MultiStageTimeSeries.java
index e564e51..fc58ea8 100644
--- a/hudson-core/src/main/java/org/eclipse/hudson/graph/MultiStageTimeSeries.java
+++ b/hudson-core/src/main/java/org/eclipse/hudson/graph/MultiStageTimeSeries.java
@@ -215,8 +215,7 @@ public class MultiStageTimeSeries {
xSeries.add(timeStr);
}
- for (int i = 0; i < series.size(); i++){
- MultiStageTimeSeries mstSeries = series.get(i);
+ for (MultiStageTimeSeries mstSeries : series) {
GraphSeries<Number> ySeries = new GraphSeries<Number>(GraphSeries.TYPE_LINE, mstSeries.title.toString(), mstSeries.color, false, false);
ySeries.setStacked(false);
ds.addYSeries(ySeries);