Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ea10cef5 authored by Kenneth Ford's avatar Kenneth Ford
Browse files

Fix lint warnings

Bug: 293636629
Test: AyeAye
Change-Id: Ib63b7ef6b113c3059e8b0bb367f6d20ec39acaac
parent 5a78383d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;

+6 −10
Original line number Diff line number Diff line
@@ -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 */));
    }
}