Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0670078b authored by Romain Vimont's avatar Romain Vimont
Browse files

Remove wrong javadoc comment



Contrary to what the comment of SharedPreferences.Editor.putString()
says, a call to putString(key, null) is not equivalent to remove(key),
at least with SharedPreferencesImpl, backed by a HashMap.

Instead, it associates a null item to the key.

Signed-off-by: default avatarRomain Vimont <rom@rom1v.com>
parent 08881385
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -71,9 +71,7 @@ public interface SharedPreferences {
         * {@link #commit} or {@link #apply} are called.
         * 
         * @param key The name of the preference to modify.
         * @param value The new value for the preference.  Supplying {@code null}
         *    as the value is equivalent to calling {@link #remove(String)} with
         *    this key.
         * @param value The new value for the preference.
         * 
         * @return Returns a reference to the same Editor object, so you can
         * chain put calls together.