summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Kenneth Ford <kennethford@google.com> 2024-02-15 04:14:36 +0000
committer Kenneth Ford <kennethford@google.com> 2024-02-16 20:56:30 +0000
commitea10cef52b74fe6446a255e81ca321c9cc6e2f1f (patch)
tree3ac9ab274f7764de621385c89a72adbd022c2366
parent5a78383db9169bfa347b69dff5cc4a2977a44f31 (diff)
Fix lint warnings
Bug: 293636629 Test: AyeAye Change-Id: Ib63b7ef6b113c3059e8b0bb367f6d20ec39acaac
-rw-r--r--core/java/android/hardware/devicestate/DeviceState.java2
-rw-r--r--core/tests/devicestatetests/src/android/hardware/devicestate/DeviceStateTest.java16
2 files changed, 7 insertions, 11 deletions
diff --git a/core/java/android/hardware/devicestate/DeviceState.java b/core/java/android/hardware/devicestate/DeviceState.java
index 86293540dd36..e35e80126388 100644
--- a/core/java/android/hardware/devicestate/DeviceState.java
+++ b/core/java/android/hardware/devicestate/DeviceState.java
@@ -202,7 +202,7 @@ public final class DeviceState {
* primary display area.
*
* Note: This does not necessarily mean that the outer display area is the
- * @link Display#DEFAULT_DISPLAY}.
+ * {@link Display#DEFAULT_DISPLAY}.
*/
public static final int PROPERTY_FOLDABLE_DISPLAY_CONFIGURATION_OUTER_PRIMARY = 11;
diff --git a/core/tests/devicestatetests/src/android/hardware/devicestate/DeviceStateTest.java b/core/tests/devicestatetests/src/android/hardware/devicestate/DeviceStateTest.java
index fb5e5120c354..c2877217a529 100644
--- a/core/tests/devicestatetests/src/android/hardware/devicestate/DeviceStateTest.java
+++ b/core/tests/devicestatetests/src/android/hardware/devicestate/DeviceStateTest.java
@@ -57,19 +57,15 @@ public final class DeviceStateTest {
@Test
public void testConstruct_tooLargeIdentifier() {
- assertThrows(IllegalArgumentException.class, () -> {
- final DeviceState state = new DeviceState(
- MAXIMUM_DEVICE_STATE_IDENTIFIER + 1 /* identifier */,
- null /* name */, 0 /* flags */);
- });
+ assertThrows(IllegalArgumentException.class,
+ () -> new DeviceState(MAXIMUM_DEVICE_STATE_IDENTIFIER + 1 /* identifier */,
+ null /* name */, 0 /* flags */));
}
@Test
public void testConstruct_tooSmallIdentifier() {
- assertThrows(IllegalArgumentException.class, () -> {
- final DeviceState state = new DeviceState(
- MINIMUM_DEVICE_STATE_IDENTIFIER - 1 /* identifier */,
- null /* name */, 0 /* flags */);
- });
+ assertThrows(IllegalArgumentException.class,
+ () -> new DeviceState(MINIMUM_DEVICE_STATE_IDENTIFIER - 1 /* identifier */,
+ null /* name */, 0 /* flags */));
}
}