// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
- int id = item.getItemId();
+// int id = item.getItemId();
//noinspection SimplifiableIfStatement
//if (id == R.id.action_settings) {
import android.os.Bundle;
import android.preference.PreferenceActivity;
import android.support.annotation.LayoutRes;
+import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatDelegate;
getDelegate().setSupportActionBar(toolbar);
}
+ @NonNull
@Override
public MenuInflater getMenuInflater() {
return getDelegate().getMenuInflater();
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatDialogFragment;
-import android.util.Log;
import android.widget.DatePicker;
import android.widget.TextView;
LedgerTransaction(String date, String description) {
this.date = date;
this.description = description;
- this.items = new ArrayList<LedgerTransactionItem>();
+ this.items = new ArrayList<>();
}
void add_item(LedgerTransactionItem item) {
this.description = description;
}
- public Iterator<LedgerTransactionItem> getItemsIterator() {
+ Iterator<LedgerTransactionItem> getItemsIterator() {
return new Iterator<LedgerTransactionItem>() {
private int pointer = 0;
@Override
private List<AbstractMap.SimpleEntry<String,String>> pairs;
UrlEncodedFormData() {
- pairs = new ArrayList<AbstractMap.SimpleEntry<String, String>>();
+ pairs = new ArrayList<>();
}
void add_pair(String name, String value) {