Merge "Fix the backups example to use a simpler lock."

This commit is contained in:
Jesse Wilson
2011-11-19 09:09:58 -08:00
committed by Android (Google) Code Review

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