X-Git-Url: https://git.ktnx.net/?p=mobile-ledger.git;a=blobdiff_plain;f=app%2Fsrc%2Fmain%2Fjava%2Fnet%2Fktnx%2Fmobileledger%2FLedgerTransaction.java;h=3000b2e35ecd20a6c634a828e94235847cbde858;hp=1690b9369dd323bd72ffad6c3a8bef943fb37a51;hb=8b2a83f10265f8c8e8044b8dd990337283834afd;hpb=da49b6f42e6bbb9535b10f4c6d21e784c4106f4d
diff --git a/app/src/main/java/net/ktnx/mobileledger/LedgerTransaction.java b/app/src/main/java/net/ktnx/mobileledger/LedgerTransaction.java
index 1690b936..3000b2e3 100644
--- a/app/src/main/java/net/ktnx/mobileledger/LedgerTransaction.java
+++ b/app/src/main/java/net/ktnx/mobileledger/LedgerTransaction.java
@@ -1,3 +1,20 @@
+/*
+ * Copyright © 2018 Damyan Ivanov.
+ * This file is part of Mobile-Ledger.
+ * Mobile-Ledger is free software: you can distribute it and/or modify it
+ * under the term of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your opinion), any later version.
+ *
+ * Mobile-Ledger is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License terms for details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Mobile-Ledger. If not, see .
+ */
+
package net.ktnx.mobileledger;
import java.util.ArrayList;
@@ -12,7 +29,7 @@ class LedgerTransaction {
LedgerTransaction(String date, String description) {
this.date = date;
this.description = description;
- this.items = new ArrayList();
+ this.items = new ArrayList<>();
}
void add_item(LedgerTransactionItem item) {
@@ -35,7 +52,7 @@ class LedgerTransaction {
this.description = description;
}
- public Iterator getItemsIterator() {
+ Iterator getItemsIterator() {
return new Iterator() {
private int pointer = 0;
@Override