From df3a06ac9b6952dcfa7c966b13bd4f551abe601d Mon Sep 17 00:00:00 2001 From: Andreas Shimokawa Date: Tue, 22 Mar 2016 21:55:15 +0100 Subject: [PATCH] Reformat code, make getter of @NonNull members also @NonNull --- .../gadgetbridge/devices/miband/MiBandFWHelper.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/miband/MiBandFWHelper.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/miband/MiBandFWHelper.java index b1ba5813..21d5e64e 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/miband/MiBandFWHelper.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/miband/MiBandFWHelper.java @@ -31,8 +31,10 @@ public class MiBandFWHelper { * given firmware. You must call AbstractMiFirmwareInfo#checkValid() before * attempting to flash it. */ - private final @NonNull AbstractMiFirmwareInfo firmwareInfo; - private final @NonNull byte[] fw; + @NonNull + private final AbstractMiFirmwareInfo firmwareInfo; + @NonNull + private final byte[] fw; /** * Provides a different notification API which is also used on Mi1A devices. @@ -108,6 +110,7 @@ public class MiBandFWHelper { return formatFirmwareVersion(version); } + @NonNull public byte[] getFw() { return fw; } @@ -145,6 +148,7 @@ public class MiBandFWHelper { * given firmware. You MUST call AbstractMiFirmwareInfo#checkValid() AND * isGenerallyCompatibleWithDevice() before attempting to flash it. */ + @NonNull public AbstractMiFirmwareInfo getFirmwareInfo() { return firmwareInfo; }