]> git.ktnx.net Git - mobile-ledger.git/commitdiff
override the weaker access warning
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Fri, 19 Apr 2019 17:25:53 +0000 (20:25 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Fri, 19 Apr 2019 20:56:44 +0000 (23:56 +0300)
the similar method accepting profile object is public and is used in
the wild, so maybe this one would also be used one day

app/src/main/java/net/ktnx/mobileledger/model/Data.java

index d183c4c8094b65401c82284f5a89949cc4322804..27eac04ff8d747da788ce75ed86d00b99ce00cd3 100644 (file)
@@ -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++) {