mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-29 13:53:54 +01:00
Replace explicit type with diamond operator
This commit is contained in:
parent
126a823fb5
commit
d866ab3e07
16 changed files with 43 additions and 43 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue