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

Commit 2d33d703 authored by Xu Qian's avatar Xu Qian Committed by Jia Jia
Browse files

Fix thread-shared field evades lock acquisition reported by Coverity

Change-Id: Ia351e2ddc79a3f8e1b47ed1e697a2d24b2a3ebe7
parent efbd8b39
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -1196,7 +1196,6 @@ public class Typeface {

    /** @hide */
    public boolean isSupportedAxes(int axis) {
        if (mSupportedAxes == null) {
        synchronized (this) {
            if (mSupportedAxes == null) {
                mSupportedAxes = nativeGetSupportedAxes(native_instance);
@@ -1205,7 +1204,6 @@ public class Typeface {
                }
            }
        }
        }
        return Arrays.binarySearch(mSupportedAxes, axis) >= 0;
    }