From 5ed97d297f1b316c1f49bcee903593b94203134a Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Wed, 15 Nov 2017 11:23:20 +0100 Subject: [PATCH] Minor code cleanup. --- .../nightscout/androidaps/data/Profile.java | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/data/Profile.java b/app/src/main/java/info/nightscout/androidaps/data/Profile.java index 61c7397694..f74170cba5 100644 --- a/app/src/main/java/info/nightscout/androidaps/data/Profile.java +++ b/app/src/main/java/info/nightscout/androidaps/data/Profile.java @@ -30,21 +30,21 @@ public class Profile { private JSONObject json; private String units = null; - double dia = Constants.defaultDIA; - TimeZone timeZone = TimeZone.getDefault(); - JSONArray isf; + private double dia = Constants.defaultDIA; + private TimeZone timeZone = TimeZone.getDefault(); + private JSONArray isf; private LongSparseArray isf_v = null; // oldest at index 0 - JSONArray ic; + private JSONArray ic; private LongSparseArray ic_v = null; // oldest at index 0 - JSONArray basal; + private JSONArray basal; private LongSparseArray basal_v = null; // oldest at index 0 - JSONArray targetLow; + private JSONArray targetLow; private LongSparseArray targetLow_v = null; // oldest at index 0 - JSONArray targetHigh; + private JSONArray targetHigh; private LongSparseArray targetHigh_v = null; // oldest at index 0 - int percentage = 100; - int timeshift = 0; + private int percentage = 100; + private int timeshift = 0; public Profile(JSONObject json, String units) { this(json, 100, 0); @@ -206,7 +206,7 @@ public class Profile { return shiftedTime; } - double getMultiplier(LongSparseArray array) { + private double getMultiplier(LongSparseArray array) { double multiplier = 1d; if (array == isf_v) @@ -220,7 +220,7 @@ public class Profile { return multiplier; } - double getMultiplier(JSONArray array) { + private double getMultiplier(JSONArray array) { double multiplier = 1d; if (array == isf)