Replace explicit type with diamond operator

This commit is contained in:
veyndan 2017-03-01 15:44:32 +00:00
parent 126a823fb5
commit d866ab3e07
16 changed files with 43 additions and 43 deletions

View file

@ -249,7 +249,7 @@ public class MultipleShareActivity
if(intent.getAction().equals(Intent.ACTION_SEND_MULTIPLE)) {
if(photosList == null) {
photosList = new ArrayList<Contribution>();
photosList = new ArrayList<>();
ArrayList<Uri> urisList = intent.getParcelableArrayListExtra(Intent.EXTRA_STREAM);
for(int i=0; i < urisList.size(); i++) {
Contribution up = new Contribution();

View file

@ -42,7 +42,7 @@ public class MwVolleyApi {
public MwVolleyApi(Context context) {
this.context = context;
categorySet = new HashSet<String>();
categorySet = new HashSet<>();
}
public static List<String> getGpsCat() {
@ -50,7 +50,7 @@ public class MwVolleyApi {
}
public static void setGpsCat(List cachedList) {
categoryList = new ArrayList<String>();
categoryList = new ArrayList<>();
categoryList.addAll(cachedList);
Log.d(TAG, "Setting GPS cats from cache: " + categoryList.toString());
}
@ -236,7 +236,7 @@ public class MwVolleyApi {
}
}
categoryList = new ArrayList<String>(categorySet);
categoryList = new ArrayList<>(categorySet);
builder.replace(builder.length() - 1, builder.length(), "");
return builder.toString();
}