Merge pull request #363 from veyndan/diamond

Replace explicit type with diamond operator
This commit is contained in:
Josephine Lim 2017-03-02 18:37:14 +10:00 committed by GitHub
commit 9a6dd2e97e
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();
}