diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2015-08-28 12:02:53 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2015-08-31 09:52:03 +0200 |
commit | 674fb0012f9f5d4de75c6ffcd346b65a591f1681 (patch) | |
tree | 92f686ae0eeec74a39cc1e3553d0b1b621481835 /sonar-plugin-api | |
parent | 824a30f8c36e35b3b9ca396619e3204f7568115b (diff) | |
download | sonarqube-674fb0012f9f5d4de75c6ffcd346b65a591f1681.tar.gz sonarqube-674fb0012f9f5d4de75c6ffcd346b65a591f1681.zip |
SONAR-6730 Replace List by varargs in addChildrenMeasures
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/test/java/org/sonar/api/test/ce/measure/MeasureComputerImplementationContext.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sonar-plugin-api/src/test/java/org/sonar/api/test/ce/measure/MeasureComputerImplementationContext.java b/sonar-plugin-api/src/test/java/org/sonar/api/test/ce/measure/MeasureComputerImplementationContext.java index 17c8944648a..2176a7ee8e8 100644 --- a/sonar-plugin-api/src/test/java/org/sonar/api/test/ce/measure/MeasureComputerImplementationContext.java +++ b/sonar-plugin-api/src/test/java/org/sonar/api/test/ce/measure/MeasureComputerImplementationContext.java @@ -86,7 +86,7 @@ public class MeasureComputerImplementationContext implements MeasureComputer.Imp componentMeasureByMetricKey.put(metricKey, MeasureImpl.createMeasure(value)); } - public void addIntegerChildrenMeasures(String metricKey, List<Integer> values) { + public void addChildrenMeasures(String metricKey, Integer... values) { for (Integer value : values) { childrenComponentMeasureByMetricKey.put(metricKey, MeasureImpl.createMeasure(value)); } @@ -102,7 +102,7 @@ public class MeasureComputerImplementationContext implements MeasureComputer.Imp componentMeasureByMetricKey.put(metricKey, MeasureImpl.createMeasure(value)); } - public void addDoubleChildrenMeasures(String metricKey, List<Double> values) { + public void addChildrenMeasures(String metricKey, Double... values) { for (Double value : values) { childrenComponentMeasureByMetricKey.put(metricKey, MeasureImpl.createMeasure(value)); } @@ -118,7 +118,7 @@ public class MeasureComputerImplementationContext implements MeasureComputer.Imp componentMeasureByMetricKey.put(metricKey, MeasureImpl.createMeasure(value)); } - public void addLongChildrenMeasures(String metricKey, List<Long> values) { + public void addChildrenMeasures(String metricKey, Long... values) { for (Long value : values) { childrenComponentMeasureByMetricKey.put(metricKey, MeasureImpl.createMeasure(value)); } @@ -134,7 +134,7 @@ public class MeasureComputerImplementationContext implements MeasureComputer.Imp componentMeasureByMetricKey.put(metricKey, MeasureImpl.createMeasure(value)); } - public void addStringChildrenMeasures(String metricKey, List<String> values) { + public void addChildrenMeasures(String metricKey, String... values) { for (String value : values) { childrenComponentMeasureByMetricKey.put(metricKey,MeasureImpl.createMeasure(value)); } |