Do an assertion here to get rid of a warning - this can not be null

This commit is contained in:
ligi 2015-05-03 02:20:17 +02:00
parent 47f53cafa2
commit 7f091c62a8

View file

@ -30,6 +30,7 @@ public class PastLocationsStore {
final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
final Set<String> pastLocations = prefs.getStringSet(KEY_PAST_LOCATIONS, new HashSet<String>());
assert pastLocations != null;
if (pastLocations.size() >= MAX_ELEMENTS) {
deleteOneElementFromSet(pastLocations);
}