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

Commit 1d866c0b authored by Neil Fuller's avatar Neil Fuller Committed by android-build-merger
Browse files

Merge "Fix annotation / debugging"

am: 69bbb190

Change-Id: I9da174d658ada4acf399fe9f743b012aea7ebeae
parents 55024898 69bbb190
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -183,12 +183,11 @@ public class NtpTrustedTime implements TrustedTime {
     *
     *
     * @throws IllegalStateException if there is no cached value
     * @throws IllegalStateException if there is no cached value
     */
     */
    @UnsupportedAppUsage
    public TimestampedValue<Long> getCachedNtpTimeSignal() {
    public TimestampedValue<Long> getCachedNtpTimeSignal() {
        if (!mHasCache) {
        if (!mHasCache) {
            throw new IllegalStateException("Missing authoritative time source");
            throw new IllegalStateException("Missing authoritative time source");
        }
        }
        if (LOGD) Log.d(TAG, "currentTimeMillis() cache hit");
        if (LOGD) Log.d(TAG, "getCachedNtpTimeSignal() cache hit");


        return new TimestampedValue<>(mCachedNtpElapsedRealtime, mCachedNtpTime);
        return new TimestampedValue<>(mCachedNtpElapsedRealtime, mCachedNtpTime);
    }
    }