From b6809c9d45a4e0d0a0f5e677cb1d9e37a8d7ef6d Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Mon, 22 Oct 2018 21:27:15 +0200 Subject: [PATCH] fix compiler warning --- .../info/nightscout/androidaps/watchfaces/CircleWatchface.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wear/src/main/java/info/nightscout/androidaps/watchfaces/CircleWatchface.java b/wear/src/main/java/info/nightscout/androidaps/watchfaces/CircleWatchface.java index 4b6922fb90..08aa2b4ff8 100644 --- a/wear/src/main/java/info/nightscout/androidaps/watchfaces/CircleWatchface.java +++ b/wear/src/main/java/info/nightscout/androidaps/watchfaces/CircleWatchface.java @@ -590,7 +590,7 @@ public class CircleWatchface extends WatchFace implements SharedPreferences.OnSh } else Log.d("addToWatchSet", "start removing bgDataList.size(): " + bgDataList.size()); - HashSet removeSet = new HashSet(); + HashSet removeSet = new HashSet<>(); double threshold = (System.currentTimeMillis() - (1000 * 60 * 5 * holdInMemory())); for (BgWatchData data : bgDataList) { if (data.timestamp < threshold) {