Skip to content

Commit

Permalink
explicit type argument replaced with <>
Browse files Browse the repository at this point in the history
  • Loading branch information
doneill committed Nov 3, 2015
1 parent 9981483 commit 5c5102f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ public void onClick(View v) {
boolean isTypeField = false;
boolean hasEdits = false;
boolean updateMapLayer = false;
Map<String, Object> attrs = new HashMap<String, Object>();
Map<String, Object> attrs = new HashMap<>();

// loop through each attribute and set the new values if they have
// changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ private Spinner createSpinnerViewFromArray(View container, Field field,
fieldAlias.setText(field.getAlias());
spinner.setPrompt(field.getAlias());

ArrayAdapter<String> spinnerAdapter = new ArrayAdapter<String>(
ArrayAdapter<String> spinnerAdapter = new ArrayAdapter<>(
this.context, android.R.layout.simple_spinner_item, values);
spinnerAdapter
.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public static String returnTypeIdFromTypeName(FeatureType[] types,
public static int[] createArrayOfFieldIndexes(Field[] fields) {

// process count of fields and which are available for editing
ArrayList<Integer> list = new ArrayList<Integer>();
ArrayList<Integer> list = new ArrayList<>();
int fieldCount = 0;

for (int i = 0; i < fields.length; i++) {
Expand Down Expand Up @@ -236,7 +236,7 @@ public static String[] createTypeNameArray(FeatureType[] types) {
public static HashMap<String, FeatureType> createTypeMapByValue(
FeatureType[] types) {

HashMap<String, FeatureType> typeMap = new HashMap<String, FeatureType>();
HashMap<String, FeatureType> typeMap = new HashMap<>();

for (FeatureType type : types) {

Expand Down

0 comments on commit 5c5102f

Please sign in to comment.