package co.infinum.princeofversions;

import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;

@Deprecated
/**
 * Implementation of {@link Storage} which stores data in default {@link SharedPreferences}.
 * @deprecated due to possibility of value erasure in shared storage. Use {@link
 * PrinceOfVersionsDefaultNamedPreferenceStorage} and migrate existing data to it.
 */
class PrinceOfVersionsDefaultStorage implements Storage {

    private static final String KEY = "PrinceOfVersions_LastNotifiedUpdate";

    private SharedPreferences sp;

    PrinceOfVersionsDefaultStorage(Context context) {
        sp = PreferenceManager.getDefaultSharedPreferences(context);
    }

    @Override
    public String lastNotifiedVersion(String defaultValue) {
        return sp.getString(KEY, defaultValue);
    }

    @Override
    public void rememberLastNotifiedVersion(String version) {
        sp.edit().putString(KEY, version).apply();
    }

}

@@ -155,20 +155,8 @@
 r;%0A%0A
-@Deprecated%0A
 /**%0A
@@ -416,16 +416,28 @@
 it.%0A */%0A
+@Deprecated%0A
 class Pr

Fix dangling javadoc