Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 192d784e authored by Jesse Wilson's avatar Jesse Wilson Committed by Android (Google) Code Review
Browse files

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

parents 3d0b23a5 ec527e5e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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