WebViewUpdater: make lock object final.
Synchronizing on non-final fields is not safe: if the field is ever
updated, different threads may end up locking on different objects.
Bug: 38441224
Test: Build
Change-Id: Icc5dbfbaeeb276504a789d3a1c81af82e5128c9b
diff --git a/services/core/java/com/android/server/webkit/WebViewUpdater.java b/services/core/java/com/android/server/webkit/WebViewUpdater.java
index 37479c8..203bbf6 100644
--- a/services/core/java/com/android/server/webkit/WebViewUpdater.java
+++ b/services/core/java/com/android/server/webkit/WebViewUpdater.java
@@ -68,7 +68,7 @@
// The WebView package currently in use (or the one we are preparing).
private PackageInfo mCurrentWebViewPackage = null;
- private Object mLock = new Object();
+ private final Object mLock = new Object();
WebViewUpdater(Context context, SystemInterface systemInterface) {
mContext = context;