Fix the backups example to use a simpler lock.
Change-Id: If9a78654b0d6bc25f0a04deb8020275e5b3d91ab
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user