mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-06-05 21:49:48 +02:00
Reformat code, make getter of @NonNull members also @NonNull
This commit is contained in:
@@ -31,8 +31,10 @@ public class MiBandFWHelper {
|
|||||||
* given firmware. You must call AbstractMiFirmwareInfo#checkValid() before
|
* given firmware. You must call AbstractMiFirmwareInfo#checkValid() before
|
||||||
* attempting to flash it.
|
* attempting to flash it.
|
||||||
*/
|
*/
|
||||||
private final @NonNull AbstractMiFirmwareInfo firmwareInfo;
|
@NonNull
|
||||||
private final @NonNull byte[] fw;
|
private final AbstractMiFirmwareInfo firmwareInfo;
|
||||||
|
@NonNull
|
||||||
|
private final byte[] fw;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Provides a different notification API which is also used on Mi1A devices.
|
* Provides a different notification API which is also used on Mi1A devices.
|
||||||
@@ -108,6 +110,7 @@ public class MiBandFWHelper {
|
|||||||
return formatFirmwareVersion(version);
|
return formatFirmwareVersion(version);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@NonNull
|
||||||
public byte[] getFw() {
|
public byte[] getFw() {
|
||||||
return fw;
|
return fw;
|
||||||
}
|
}
|
||||||
@@ -145,6 +148,7 @@ public class MiBandFWHelper {
|
|||||||
* given firmware. You MUST call AbstractMiFirmwareInfo#checkValid() AND
|
* given firmware. You MUST call AbstractMiFirmwareInfo#checkValid() AND
|
||||||
* isGenerallyCompatibleWithDevice() before attempting to flash it.
|
* isGenerallyCompatibleWithDevice() before attempting to flash it.
|
||||||
*/
|
*/
|
||||||
|
@NonNull
|
||||||
public AbstractMiFirmwareInfo getFirmwareInfo() {
|
public AbstractMiFirmwareInfo getFirmwareInfo() {
|
||||||
return firmwareInfo;
|
return firmwareInfo;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user