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

@ -33,7 +33,7 @@ public class CacheController {
}
public void cacheCategory() {
List<String> pointCatList = new ArrayList<String>();
List<String> pointCatList = new ArrayList<>();
if (MwVolleyApi.GpsCatExists.getGpsCatExists() == true) {
pointCatList.addAll(MwVolleyApi.getGpsCat());
Log.d(TAG, "Categories being cached: " + pointCatList);
@ -47,7 +47,7 @@ public class CacheController {
//Convert decLatitude and decLongitude to a coordinate offset range
convertCoordRange();
pointsFound = quadTree.searchWithin(xMinus, yMinus, xPlus, yPlus);
List<String> displayCatList = new ArrayList<String>();
List<String> displayCatList = new ArrayList<>();
Log.d(TAG, "Points found in quadtree: " + Arrays.asList(pointsFound));
if (pointsFound.length != 0) {