From: Damyan Ivanov Date: Fri, 29 Mar 2019 17:36:07 +0000 (+0200) Subject: whitespace X-Git-Tag: v0.9~31 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=55f76739da51795c0258fb17a687219e81280d04;p=mobile-ledger.git whitespace --- 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 1fc4aa06..48555ff0 100644 --- a/app/src/main/java/net/ktnx/mobileledger/model/Data.java +++ b/app/src/main/java/net/ktnx/mobileledger/model/Data.java @@ -29,8 +29,7 @@ import java.util.List; public final class Data { public static ObservableList transactions = new ObservableList<>(new ArrayList<>()); - public static ObservableList accounts = - new ObservableList<>(new ArrayList<>()); + public static ObservableList accounts = new ObservableList<>(new ArrayList<>()); public static ObservableAtomicInteger backgroundTaskCount = new ObservableAtomicInteger(0); public static ObservableValue lastUpdateDate = new ObservableValue<>(); public static ObservableValue profile = new ObservableValue<>(); @@ -42,7 +41,7 @@ public final class Data { profile.set(newProfile); } public static int getProfileIndex(MobileLedgerProfile profile) { - try(LockHolder lh = profiles.lockForReading()) { + try (LockHolder lh = profiles.lockForReading()) { for (int i = 0; i < profiles.size(); i++) { MobileLedgerProfile p = profiles.get(i); if (p.equals(profile)) return i;