private String token;
private String session;
private LedgerTransaction transaction;
- private MobileLedgerProfile mProfile;
- private boolean simulate;
+ private final MobileLedgerProfile mProfile;
+ private final boolean simulate;
public SendTransactionTask(TaskCallback callback, MobileLedgerProfile profile,
boolean simulate) {
params.addPair("_token", token);
SimpleDate transactionDate = transaction.getDate();
- if (transactionDate == null) {
- transactionDate = SimpleDate.today();
- }
params.addPair("date", Globals.formatLedgerDate(transactionDate));
params.addPair("description", transaction.getDescription());
public enum API {
auto(0), html(-1), pre_1_15(-2), post_1_14(-3);
- private static SparseArray<API> map = new SparseArray<>();
+ private static final SparseArray<API> map = new SparseArray<>();
static {
for (API item : API.values()) {