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

Commit 7fbaf2a6 authored by Daichi Hirono's avatar Daichi Hirono Committed by Android (Google) Code Review
Browse files

Merge "Fix warning from error prone."

parents 994c5775 f20e49ec
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();