From 92fd8d647ccbb767a881a6b31533fab557e2bbb6 Mon Sep 17 00:00:00 2001 From: Aleksander Nowakowski Date: Mon, 1 Oct 2018 14:06:06 +0200 Subject: [PATCH] Suppressing warnings --- .../java/no/nordicsemi/android/dfu/DfuServiceController.java | 1 + .../java/no/nordicsemi/android/dfu/DfuServiceListenerHelper.java | 1 + 2 files changed, 2 insertions(+) diff --git a/dfu/src/main/java/no/nordicsemi/android/dfu/DfuServiceController.java b/dfu/src/main/java/no/nordicsemi/android/dfu/DfuServiceController.java index f9529b7..5c8ce7e 100644 --- a/dfu/src/main/java/no/nordicsemi/android/dfu/DfuServiceController.java +++ b/dfu/src/main/java/no/nordicsemi/android/dfu/DfuServiceController.java @@ -32,6 +32,7 @@ import android.support.v4.content.LocalBroadcastManager; * will work for all DFU processes, but the {@link #isPaused()} and {@link #isAborted()} methods may report incorrect values.

*

Added in DFU Library version 1.0.2.

*/ +@SuppressWarnings({"WeakerAccess", "unused"}) public class DfuServiceController implements DfuController { private LocalBroadcastManager mBroadcastManager; private boolean mPaused; diff --git a/dfu/src/main/java/no/nordicsemi/android/dfu/DfuServiceListenerHelper.java b/dfu/src/main/java/no/nordicsemi/android/dfu/DfuServiceListenerHelper.java index 235d25d..0289052 100644 --- a/dfu/src/main/java/no/nordicsemi/android/dfu/DfuServiceListenerHelper.java +++ b/dfu/src/main/java/no/nordicsemi/android/dfu/DfuServiceListenerHelper.java @@ -44,6 +44,7 @@ import no.nordicsemi.android.error.GattError; *

Use {@link #registerProgressListener(Context, DfuProgressListener)} or {@link #registerLogListener(Context, DfuLogListener)} to register your listeners. Remember about unregistering them * when your context is destroyed.

*/ +@SuppressWarnings({"WeakerAccess", "unused"}) public class DfuServiceListenerHelper { private static LogBroadcastReceiver mLogBroadcastReceiver; private static ProgressBroadcastsReceiver mProgressBroadcastReceiver;