From ec527e5ecefd7ee36eb03fce00022a85a8c86377 Mon Sep 17 00:00:00 2001
From: Jesse Wilson
Date: Fri, 18 Nov 2011 17:18:16 -0500
Subject: Fix the backups example to use a simpler lock.
Change-Id: If9a78654b0d6bc25f0a04deb8020275e5b3d91ab
---
docs/html/guide/topics/data/backup.jd | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'docs/html/guide/topics/data')
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:
// Object for intrinsic lock
-static final Object[] sDataLock = new Object[0];
+static final Object sDataLock = new Object();
Then create a synchronized statement with this lock each time you read or write the files. For
--
cgit v1.1