Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 72b61e63 authored by Neil Fuller's avatar Neil Fuller
Browse files

Remove dependency on internal libcore method

The test already uses FileUtils.deleteContents() in several
places so the one usage of IoUtils.deleteContents() which is
functionally equivalent can be switched over to that instead.

Bug: 113148576
Test: build only
Change-Id: Ic5569c82701e89ae9178c1438caf1e8885861a76
parent 61b9b6c9
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -32,7 +32,6 @@ import android.provider.DocumentsContract.Document;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;

import libcore.io.IoUtils;
import libcore.io.Streams;

import com.google.android.collect.Sets;
@@ -79,7 +78,7 @@ public class FileUtilsTest {

    @After
    public void tearDown() throws Exception {
        IoUtils.deleteContents(mDir);
        FileUtils.deleteContents(mDir);
        FileUtils.deleteContents(mTarget);
    }