From bd012cab2a8e14c993733e7a75f9ccffdbcae257 Mon Sep 17 00:00:00 2001 From: Andreas Shimokawa Date: Mon, 7 May 2018 22:20:18 +0200 Subject: [PATCH] fix typo --- .../devices/huami/amazfitcor/AmazfitCorFWHelper.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huami/amazfitcor/AmazfitCorFWHelper.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huami/amazfitcor/AmazfitCorFWHelper.java index d5758dbda..8b21fd2af 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huami/amazfitcor/AmazfitCorFWHelper.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huami/amazfitcor/AmazfitCorFWHelper.java @@ -18,12 +18,10 @@ package nodomain.freeyourgadget.gadgetbridge.devices.huami.amazfitcor; import android.content.Context; import android.net.Uri; -import android.support.annotation.NonNull; import java.io.IOException; import nodomain.freeyourgadget.gadgetbridge.devices.huami.HuamiFWHelper; -import nodomain.freeyourgadget.gadgetbridge.service.devices.amazfitbip.AmazfitBipFirmwareInfo; import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.amazfitcor.AmazfitCorFirmwareInfo; public class AmazfitCorFWHelper extends HuamiFWHelper { @@ -32,12 +30,11 @@ public class AmazfitCorFWHelper extends HuamiFWHelper { super(uri, context); } - @NonNull @Override protected void determineFirmwareInfo(byte[] wholeFirmwareBytes) { firmwareInfo = new AmazfitCorFirmwareInfo(wholeFirmwareBytes); if (!firmwareInfo.isHeaderValid()) { - throw new IllegalArgumentException("Not a an Amazifit Bip firmware"); + throw new IllegalArgumentException("Not a an Amazfit Cor firmware"); } } }