]> git.ktnx.net Git - mobile-ledger-staging.git/blobdiff - app/src/main/java/net/ktnx/mobileledger/ui/MainModel.java
fix many lint errors/warnings
[mobile-ledger-staging.git] / app / src / main / java / net / ktnx / mobileledger / ui / MainModel.java
index 9572ea0d678eeffb152148da5b5123a65847f20d..5bc2554c4ff9b4f0db96824a6d017aca01891e00 100644 (file)
@@ -65,7 +65,7 @@ public class MainModel extends ViewModel {
     private final MutableLiveData<String> updateError = new MutableLiveData<>();
     private MobileLedgerProfile profile;
     private List<LedgerAccount> allAccounts = new ArrayList<>();
-    private Map<String, LedgerAccount> accountMap = new HashMap<>();
+    private final Map<String, LedgerAccount> accountMap = new HashMap<>();
     private SimpleDate firstTransactionDate;
     private SimpleDate lastTransactionDate;
     transient private RetrieveTransactionsTask retrieveTransactionsTask;
@@ -274,8 +274,8 @@ public class MainModel extends ViewModel {
     }
 
     static class AccountListLoader extends Thread {
-        private MobileLedgerProfile profile;
-        private MainModel model;
+        private final MobileLedgerProfile profile;
+        private final MainModel model;
         AccountListLoader(MobileLedgerProfile profile, MainModel model) {
             this.profile = profile;
             this.model = model;