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

Commit f20e49ec authored by Daichi Hirono's avatar Daichi Hirono
Browse files

Fix warning from error prone.

BUG=29146585

Change-Id: Ic54caecf1abd74affcd902a9561adcdaa8f10c59
parent 22dcbc3e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -561,7 +561,8 @@ public class MtpDocumentsProviderTest extends AndroidTestCase {
    public void testBusyDevice() throws Exception {
        mMtpManager = new TestMtpManager(getContext()) {
            @Override
            MtpDeviceRecord openDevice(int deviceId) throws IOException {
            synchronized MtpDeviceRecord openDevice(int deviceId)
                    throws IOException {
                throw new BusyDeviceException();
            }
        };
+3 −3
Original line number Diff line number Diff line
@@ -74,7 +74,7 @@ public class TestMtpManager extends MtpManager {
    }

    @Override
    MtpDeviceRecord[] getDevices() {
    synchronized MtpDeviceRecord[] getDevices() {
        final MtpDeviceRecord[] result = new MtpDeviceRecord[mDevices.size()];
        for (int i = 0; i < mDevices.size(); i++) {
            final MtpDeviceRecord device = mDevices.valueAt(i);
@@ -90,7 +90,7 @@ public class TestMtpManager extends MtpManager {
    }

    @Override
    MtpDeviceRecord openDevice(int deviceId) throws IOException {
    synchronized MtpDeviceRecord openDevice(int deviceId) throws IOException {
        final MtpDeviceRecord device = mDevices.get(deviceId);
        if (device == null) {
            throw new IOException();
@@ -103,7 +103,7 @@ public class TestMtpManager extends MtpManager {
    }

    @Override
    void closeDevice(int deviceId) throws IOException {
    synchronized void closeDevice(int deviceId) throws IOException {
        final MtpDeviceRecord device = mDevices.get(deviceId);
        if (device == null) {
            throw new IOException();