diff options
author | Jesse Wilson <jessewilson@google.com> | 2011-11-18 17:18:16 -0500 |
---|---|---|
committer | Jesse Wilson <jessewilson@google.com> | 2011-11-18 17:18:16 -0500 |
commit | ec527e5ecefd7ee36eb03fce00022a85a8c86377 (patch) | |
tree | 835582783649f4ceae410dd157d6e0f85bbd21d0 /docs/html/guide/topics/data | |
parent | 26650aef868a47db67c085ca734d9ea14f269d74 (diff) | |
download | frameworks_base-ec527e5ecefd7ee36eb03fce00022a85a8c86377.zip frameworks_base-ec527e5ecefd7ee36eb03fce00022a85a8c86377.tar.gz frameworks_base-ec527e5ecefd7ee36eb03fce00022a85a8c86377.tar.bz2 |
Fix the backups example to use a simpler lock.
Change-Id: If9a78654b0d6bc25f0a04deb8020275e5b3d91ab
Diffstat (limited to 'docs/html/guide/topics/data')
-rw-r--r-- | docs/html/guide/topics/data/backup.jd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/html/guide/topics/data/backup.jd b/docs/html/guide/topics/data/backup.jd index 477fef9..79dfd88 100644 --- a/docs/html/guide/topics/data/backup.jd +++ b/docs/html/guide/topics/data/backup.jd @@ -710,7 +710,7 @@ lock for the synchronized statements:</p> <pre> // Object for intrinsic lock -static final Object[] sDataLock = new Object[0]; +static final Object sDataLock = new Object(); </pre> <p>Then create a synchronized statement with this lock each time you read or write the files. For |