From: Damyan Ivanov Date: Fri, 19 Apr 2019 17:25:53 +0000 (+0300) Subject: override the weaker access warning X-Git-Tag: v0.10.0~79 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=f8190806fffcf824f4ae3fba44f37ac8295f978c;p=mobile-ledger.git override the weaker access warning the similar method accepting profile object is public and is used in the wild, so maybe this one would also be used one day --- diff --git a/app/src/main/java/net/ktnx/mobileledger/model/Data.java b/app/src/main/java/net/ktnx/mobileledger/model/Data.java index d183c4c8..27eac04f 100644 --- a/app/src/main/java/net/ktnx/mobileledger/model/Data.java +++ b/app/src/main/java/net/ktnx/mobileledger/model/Data.java @@ -69,6 +69,7 @@ public final class Data { return -1; } } + @SuppressWarnings("WeakerAccess") public static int getProfileIndex(String profileUUID) { try (LockHolder ignored = profiles.lockForReading()) { for (int i = 0; i < profiles.size(); i++) {