Fix the backups example to use a simpler lock.

Change-Id: If9a78654b0d6bc25f0a04deb8020275e5b3d91ab
This commit is contained in:
Jesse Wilson
2011-11-18 17:18:16 -05:00
parent 26650aef86
commit ec527e5ece

View File

@@ -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