summaryrefslogtreecommitdiff
path: root/java/com/android/voicemail/impl/Assert.java
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2017-12-28 02:35:07 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-12-28 02:35:07 +0000
commit281998c825ad48d842bb653e2f462719fdb0c1d9 (patch)
treebc8bfcce809257b3ddbb423a9808082292b9f6a3 /java/com/android/voicemail/impl/Assert.java
parentfc81a030a7b4f6d4a497f71aed593d398795e7da (diff)
parent183cb71663320f16149d83eeebaff7795a4b55f2 (diff)
Merge "Remove field prefixes."
Diffstat (limited to 'java/com/android/voicemail/impl/Assert.java')
-rw-r--r--java/com/android/voicemail/impl/Assert.java12
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;
}
}