From 55ec17266ef8c6955fe1a29a44986497456762f1 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Sat, 15 Aug 2020 09:26:21 +0000 Subject: [PATCH] rename 'iter' variable to 'iterator' --- .../json/v1_14/AccountListParser.java | 8 +-- .../json/v1_14/TransactionListParser.java | 6 +- .../json/v1_15/AccountListParser.java | 8 +-- .../json/v1_15/TransactionListParser.java | 6 +- .../main/res/layout-w900dp/profile_list.xml | 56 ------------------- 5 files changed, 14 insertions(+), 70 deletions(-) delete mode 100644 app/src/main/res/layout-w900dp/profile_list.xml 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 -- 2.39.5