Merge "Fix thread-shared field evades lock acquisition reported by Coverity" am: 66fc99d578
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1646974 Change-Id: Ie2fe000d93f3edd0e3c8ac0d049850d7c9510c01
This commit is contained in:
@@ -1196,7 +1196,6 @@ public class Typeface {
|
|||||||
|
|
||||||
/** @hide */
|
/** @hide */
|
||||||
public boolean isSupportedAxes(int axis) {
|
public boolean isSupportedAxes(int axis) {
|
||||||
if (mSupportedAxes == null) {
|
|
||||||
synchronized (this) {
|
synchronized (this) {
|
||||||
if (mSupportedAxes == null) {
|
if (mSupportedAxes == null) {
|
||||||
mSupportedAxes = nativeGetSupportedAxes(native_instance);
|
mSupportedAxes = nativeGetSupportedAxes(native_instance);
|
||||||
@@ -1205,7 +1204,6 @@ public class Typeface {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return Arrays.binarySearch(mSupportedAxes, axis) >= 0;
|
return Arrays.binarySearch(mSupportedAxes, axis) >= 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user