Merge "Fix Error Prone errors" am: 72acd372b2 am: bbf2f80c02 am: 311b4e40df
Change-Id: I37c3d645d88c7c8a0b68b657b8699864d1801e20
This commit is contained in:
@@ -33,6 +33,7 @@ import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Iterator;
|
||||
import java.util.concurrent.LinkedBlockingQueue;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
@@ -163,13 +164,13 @@ public class TetheringManagerTest {
|
||||
if (state == null || state.mErrored == null) return;
|
||||
|
||||
if (state.mErrored.size() > 0) {
|
||||
fail("Found failed tethering interfaces: " + state.mErrored.toArray());
|
||||
fail("Found failed tethering interfaces: " + Arrays.toString(state.mErrored.toArray()));
|
||||
}
|
||||
}
|
||||
|
||||
private void assertNoActiveIfaces(final TetherState state) {
|
||||
if (state.mActive != null && state.mActive.size() > 0) {
|
||||
fail("Found active tethering interface: " + state.mActive.toArray());
|
||||
fail("Found active tethering interface: " + Arrays.toString(state.mActive.toArray()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user