Merge "Fix annotation / debugging"

This commit is contained in:
Neil Fuller
2020-01-07 16:24:38 +00:00
committed by Gerrit Code Review

View File

@@ -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);
} }