From: Damyan Ivanov Date: Sat, 15 Aug 2020 09:26:21 +0000 (+0000) Subject: rename 'iter' variable to 'iterator' X-Git-Tag: v0.15.0~71 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=55ec17266ef8c6955fe1a29a44986497456762f1;p=mobile-ledger.git rename 'iter' variable to 'iterator' --- diff --git a/app/src/main/java/net/ktnx/mobileledger/json/v1_14/AccountListParser.java b/app/src/main/java/net/ktnx/mobileledger/json/v1_14/AccountListParser.java index e3f0e384..f3773a52 100644 --- a/app/src/main/java/net/ktnx/mobileledger/json/v1_14/AccountListParser.java +++ b/app/src/main/java/net/ktnx/mobileledger/json/v1_14/AccountListParser.java @@ -28,18 +28,18 @@ import static net.ktnx.mobileledger.utils.Logger.debug; public class AccountListParser { - private final MappingIterator iter; + private final MappingIterator iterator; public AccountListParser(InputStream input) throws IOException { ObjectMapper mapper = new ObjectMapper(); ObjectReader reader = mapper.readerFor(ParsedLedgerAccount.class); - iter = reader.readValues(input); + iterator = reader.readValues(input); } public ParsedLedgerAccount nextAccount() { - if (!iter.hasNext()) return null; + if (!iterator.hasNext()) return null; - ParsedLedgerAccount next = iter.next(); + ParsedLedgerAccount next = iterator.next(); if (next.getAname().equalsIgnoreCase("root")) return nextAccount(); diff --git a/app/src/main/java/net/ktnx/mobileledger/json/v1_14/TransactionListParser.java b/app/src/main/java/net/ktnx/mobileledger/json/v1_14/TransactionListParser.java index 80566850..742c5957 100644 --- a/app/src/main/java/net/ktnx/mobileledger/json/v1_14/TransactionListParser.java +++ b/app/src/main/java/net/ktnx/mobileledger/json/v1_14/TransactionListParser.java @@ -26,15 +26,15 @@ import java.io.InputStream; public class TransactionListParser { - private final MappingIterator iter; + private final MappingIterator iterator; public TransactionListParser(InputStream input) throws IOException { ObjectMapper mapper = new ObjectMapper(); ObjectReader reader = mapper.readerFor(ParsedLedgerTransaction.class); - iter = reader.readValues(input); + iterator = reader.readValues(input); } public ParsedLedgerTransaction nextTransaction() { - return iter.hasNext() ? iter.next() : null; + return iterator.hasNext() ? iterator.next() : null; } } diff --git a/app/src/main/java/net/ktnx/mobileledger/json/v1_15/AccountListParser.java b/app/src/main/java/net/ktnx/mobileledger/json/v1_15/AccountListParser.java index 8e71cbd0..d999b457 100644 --- a/app/src/main/java/net/ktnx/mobileledger/json/v1_15/AccountListParser.java +++ b/app/src/main/java/net/ktnx/mobileledger/json/v1_15/AccountListParser.java @@ -28,18 +28,18 @@ import static net.ktnx.mobileledger.utils.Logger.debug; public class AccountListParser { - private final MappingIterator iter; + private final MappingIterator iterator; public AccountListParser(InputStream input) throws IOException { ObjectMapper mapper = new ObjectMapper(); ObjectReader reader = mapper.readerFor(ParsedLedgerAccount.class); - iter = reader.readValues(input); + iterator = reader.readValues(input); } public ParsedLedgerAccount nextAccount() { - if (!iter.hasNext()) return null; + if (!iterator.hasNext()) return null; - ParsedLedgerAccount next = iter.next(); + ParsedLedgerAccount next = iterator.next(); if (next.getAname().equalsIgnoreCase("root")) return nextAccount(); diff --git a/app/src/main/java/net/ktnx/mobileledger/json/v1_15/TransactionListParser.java b/app/src/main/java/net/ktnx/mobileledger/json/v1_15/TransactionListParser.java index c6210746..940deee4 100644 --- a/app/src/main/java/net/ktnx/mobileledger/json/v1_15/TransactionListParser.java +++ b/app/src/main/java/net/ktnx/mobileledger/json/v1_15/TransactionListParser.java @@ -26,15 +26,15 @@ import java.io.InputStream; public class TransactionListParser { - private final MappingIterator iter; + private final MappingIterator iterator; public TransactionListParser(InputStream input) throws IOException { ObjectMapper mapper = new ObjectMapper(); ObjectReader reader = mapper.readerFor(ParsedLedgerTransaction.class); - iter = reader.readValues(input); + iterator = reader.readValues(input); } public ParsedLedgerTransaction nextTransaction() { - return iter.hasNext() ? iter.next() : null; + return iterator.hasNext() ? iterator.next() : null; } } diff --git a/app/src/main/res/layout-w900dp/profile_list.xml b/app/src/main/res/layout-w900dp/profile_list.xml deleted file mode 100644 index 3701f3ad..00000000 --- a/app/src/main/res/layout-w900dp/profile_list.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file