summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCole Faust <colefaust@google.com>2021-11-24 14:40:35 -0800
committerCole Faust <colefaust@google.com>2021-11-24 14:40:35 -0800
commit51c3987b1dd29b93aceec2b1762ea971a3b368b7 (patch)
tree7f63d9311f75e887f10bbbd473fe30248fe22e42
parentf0fbc5d5e4d2087063b6ebfd6bf6bf758bfc3bd9 (diff)
downloadplatform_testing-51c3987b1dd29b93aceec2b1762ea971a3b368b7.tar.gz
Remove unnecessary parentheses
These are made into errors by tradefed_errorprone_defaults, and the new errorprone update expands the types of detected unnecessary parentheses. Bug: 190944875 Test: m RUN_ERROR_PRONE=true javac-check Change-Id: I3799c68c84c381b6f4310b0261e9906cc6c6f468
-rw-r--r--libraries/collectors-helper/statsd/test/src/com/android/helpers/HelperTestUtility.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/libraries/collectors-helper/statsd/test/src/com/android/helpers/HelperTestUtility.java b/libraries/collectors-helper/statsd/test/src/com/android/helpers/HelperTestUtility.java
index 5c726b7f5..3baca56e1 100644
--- a/libraries/collectors-helper/statsd/test/src/com/android/helpers/HelperTestUtility.java
+++ b/libraries/collectors-helper/statsd/test/src/com/android/helpers/HelperTestUtility.java
@@ -113,7 +113,7 @@ public class HelperTestUtility {
// Check whether lockscreen is dismissed using KeyguardManager.
KeyguardManager keyguardManager =
(KeyguardManager) context.getSystemService(Context.KEYGUARD_SERVICE);
- boolean displayIsUnlocked = (!keyguardManager.isKeyguardLocked());
+ boolean displayIsUnlocked = !keyguardManager.isKeyguardLocked();
if (!(displayIsOn && displayIsUnlocked)) {
sendKeyCode(KEYCODE_WAKEUP);
executeShellCommand(UNLOCK_CMD);