summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorRomain Vimont <rom@rom1v.com>2014-07-08 16:46:10 +0200
committerRomain Vimont <rom@rom1v.com>2014-07-08 17:02:01 +0200
commit0670078bb6530dd00d5b0c537ccf0538231f74e8 (patch)
tree3ce8991863283ac054c1780df41304ed9f96a9c7 /core
parent08881385a86bf887669a555ae03759c374ec9c50 (diff)
downloadframeworks_base-0670078bb6530dd00d5b0c537ccf0538231f74e8.zip
frameworks_base-0670078bb6530dd00d5b0c537ccf0538231f74e8.tar.gz
frameworks_base-0670078bb6530dd00d5b0c537ccf0538231f74e8.tar.bz2
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: Romain Vimont <rom@rom1v.com>
Diffstat (limited to 'core')
-rw-r--r--core/java/android/content/SharedPreferences.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/core/java/android/content/SharedPreferences.java b/core/java/android/content/SharedPreferences.java
index d4f7f06..49c7d7a 100644
--- a/core/java/android/content/SharedPreferences.java
+++ b/core/java/android/content/SharedPreferences.java
@@ -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.