From c828096032e947fb302face4fd1f8c9b685d153b Mon Sep 17 00:00:00 2001 From: ayman abdelghany Date: Wed, 22 Jun 2016 15:16:59 +0200 Subject: [PATCH] [squid:S2131] Primitives should not be boxed just for "String" conversion --- .../java/org/researchstack/sampleapp/DashboardFragment.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/org/researchstack/sampleapp/DashboardFragment.java b/app/src/main/java/org/researchstack/sampleapp/DashboardFragment.java index 9688b11..742b18e 100644 --- a/app/src/main/java/org/researchstack/sampleapp/DashboardFragment.java +++ b/app/src/main/java/org/researchstack/sampleapp/DashboardFragment.java @@ -147,7 +147,7 @@ public BarData createBarChartData() ArrayList xVals = new ArrayList<>(); for(int i = 0; i < 12; i++) { - xVals.add(i + ""); + xVals.add(Integer.toString(i)); } ArrayList yVals1 = new ArrayList<>(); @@ -184,7 +184,7 @@ public BarData createStackedBarChartData() ArrayList xVals = new ArrayList<>(); for(int i = 0; i < 12; i++) { - xVals.add(i + ""); + xVals.add(Integer.toString(i)); } ArrayList yVals1 = new ArrayList<>(); @@ -217,7 +217,7 @@ public LineData createLineChartData() ArrayList xValues = new ArrayList<>(); for(int i = 0; i < 12; i++) { - xValues.add(i + ""); + xValues.add(Integer.toString(i)); } ArrayList entries = new ArrayList<>();