diff options
| author | linyuh <linyuh@google.com> | 2017-12-27 17:02:37 -0800 |
|---|---|---|
| committer | Copybara-Service <copybara-piper@google.com> | 2017-12-27 17:03:47 -0800 |
| commit | 183cb71663320f16149d83eeebaff7795a4b55f2 (patch) | |
| tree | bc8bfcce809257b3ddbb423a9808082292b9f6a3 /java/com/android/voicemail/impl/Assert.java | |
| parent | fc81a030a7b4f6d4a497f71aed593d398795e7da (diff) | |
Remove field prefixes.
Test: Existing tests
PiperOrigin-RevId: 180230450
Change-Id: I0b2589cfeeaef81e42a04efa48af24b4e4d0e95f
Diffstat (limited to 'java/com/android/voicemail/impl/Assert.java')
| -rw-r--r-- | java/com/android/voicemail/impl/Assert.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/java/com/android/voicemail/impl/Assert.java b/java/com/android/voicemail/impl/Assert.java index fe063727a..0e9e4dc7d 100644 --- a/java/com/android/voicemail/impl/Assert.java +++ b/java/com/android/voicemail/impl/Assert.java @@ -21,7 +21,7 @@ import android.os.Looper; /** Assertions which will result in program termination. */ public class Assert { - private static Boolean sIsMainThreadForTest; + private static Boolean isMainThreadForTest; public static void isTrue(boolean condition) { if (!condition) { @@ -30,16 +30,16 @@ public class Assert { } public static void isMainThread() { - if (sIsMainThreadForTest != null) { - isTrue(sIsMainThreadForTest); + if (isMainThreadForTest != null) { + isTrue(isMainThreadForTest); return; } isTrue(Looper.getMainLooper().equals(Looper.myLooper())); } public static void isNotMainThread() { - if (sIsMainThreadForTest != null) { - isTrue(!sIsMainThreadForTest); + if (isMainThreadForTest != null) { + isTrue(!isMainThreadForTest); return; } isTrue(!Looper.getMainLooper().equals(Looper.myLooper())); @@ -52,6 +52,6 @@ public class Assert { /** Override the main thread status for tests. Set to null to revert to normal behavior */ @NeededForTesting public static void setIsMainThreadForTesting(Boolean isMainThread) { - sIsMainThreadForTest = isMainThread; + isMainThreadForTest = isMainThread; } } |
