Skip to content
Snippets Groups Projects
Commit f2518c83 authored by Kenneth Ford's avatar Kenneth Ford Committed by Android (Google) Code Review
Browse files

Merge "Fix lint warnings" into main

parents a82202a5 ea10cef5
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
......@@ -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 */));
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment