fix compiler warning

This commit is contained in:
Milos Kozak 2018-10-22 21:27:15 +02:00
parent 947c786dc3
commit b6809c9d45

View file

@ -590,7 +590,7 @@ public class CircleWatchface extends WatchFace implements SharedPreferences.OnSh
} else } else
Log.d("addToWatchSet", "start removing bgDataList.size(): " + bgDataList.size()); Log.d("addToWatchSet", "start removing bgDataList.size(): " + bgDataList.size());
HashSet removeSet = new HashSet(); HashSet<BgWatchData> removeSet = new HashSet<>();
double threshold = (System.currentTimeMillis() - (1000 * 60 * 5 * holdInMemory())); double threshold = (System.currentTimeMillis() - (1000 * 60 * 5 * holdInMemory()));
for (BgWatchData data : bgDataList) { for (BgWatchData data : bgDataList) {
if (data.timestamp < threshold) { if (data.timestamp < threshold) {