Merge "Fix thread-shared field evades lock acquisition reported by Coverity"
This commit is contained in:
@@ -1196,13 +1196,11 @@ 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) {
|
||||||
|
mSupportedAxes = nativeGetSupportedAxes(native_instance);
|
||||||
if (mSupportedAxes == null) {
|
if (mSupportedAxes == null) {
|
||||||
mSupportedAxes = nativeGetSupportedAxes(native_instance);
|
mSupportedAxes = EMPTY_AXES;
|
||||||
if (mSupportedAxes == null) {
|
|
||||||
mSupportedAxes = EMPTY_AXES;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user