Automated code cleanup using AndroidStudio.

This commit is contained in:
Dennis Guse
2020-04-02 08:21:04 +02:00
parent 16c654141f
commit 2ef74eb908
25 changed files with 43 additions and 57 deletions
@@ -58,7 +58,7 @@ public class CustomContentProviderUtilsTest {
private static final String TEST_DESC = "Test Desc!";
private static final String TEST_DESC_NEW = "Test Desc new!";
private Context context = ApplicationProvider.getApplicationContext();
private final Context context = ApplicationProvider.getApplicationContext();
private ContentProviderUtils contentProviderUtils;
@Mock
@@ -107,7 +107,7 @@ public class CustomContentProviderUtilsTest {
testIterator(1, 20000, 2000, false);
}
private List<TrackPoint> testIterator(long trackId, int numPoints, int batchSize, boolean descending) {
private void testIterator(long trackId, int numPoints, int batchSize, boolean descending) {
long lastPointId = initializeTrack(trackId, numPoints);
contentProviderUtils.setDefaultCursorBatchSize(batchSize);
List<TrackPoint> locations = new ArrayList<>(numPoints);
@@ -122,7 +122,6 @@ public class CustomContentProviderUtilsTest {
}
Assert.assertEquals(numPoints, locations.size());
}
return locations;
}
private long initializeTrack(long id, int numPoints) {