mirror of
https://github.com/revanced/jadb.git
synced 2024-10-15 08:49:38 +02:00
Performance: Make inner classes static
This commit is contained in:
parent
71689e4757
commit
fef9997edf
@ -91,7 +91,7 @@ public class FakeAdbServer implements AdbResponder {
|
||||
return new ArrayList<AdbDeviceResponder>(devices);
|
||||
}
|
||||
|
||||
private class DeviceResponder implements AdbDeviceResponder {
|
||||
private static class DeviceResponder implements AdbDeviceResponder {
|
||||
private final String serial;
|
||||
private final String type;
|
||||
private List<FileExpectation> fileExpectations = new ArrayList<FileExpectation>();
|
||||
@ -155,7 +155,7 @@ public class FakeAdbServer implements AdbResponder {
|
||||
org.junit.Assert.assertEquals(0, shellExpectations.size());
|
||||
}
|
||||
|
||||
private class FileExpectation implements ExpectationBuilder {
|
||||
private static class FileExpectation implements ExpectationBuilder {
|
||||
private final RemoteFile path;
|
||||
private byte[] content;
|
||||
private String failMessage;
|
||||
@ -199,7 +199,7 @@ public class FakeAdbServer implements AdbResponder {
|
||||
}
|
||||
}
|
||||
|
||||
public class ShellExpectation {
|
||||
public static class ShellExpectation {
|
||||
private final String command;
|
||||
private byte[] stdout;
|
||||
|
||||
|
@ -48,7 +48,7 @@ public class FakeSubprocess extends Subprocess {
|
||||
}
|
||||
}
|
||||
|
||||
private class Expectation {
|
||||
private static class Expectation {
|
||||
private final String[] command;
|
||||
private final int exitValue;
|
||||
|
||||
|
@ -15,7 +15,7 @@ import java.util.List;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
public class PackageManagerTest {
|
||||
private final String DEVICE_SERIAL = "serial-123";
|
||||
private static final String DEVICE_SERIAL = "serial-123";
|
||||
|
||||
private FakeAdbServer server;
|
||||
private JadbConnection connection;
|
||||
|
@ -14,7 +14,7 @@ import java.util.Map;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
public class PropertyManagerTest {
|
||||
private final String DEVICE_SERIAL = "serial-123";
|
||||
private static final String DEVICE_SERIAL = "serial-123";
|
||||
|
||||
private FakeAdbServer server;
|
||||
private JadbConnection connection;
|
||||
|
Loading…
Reference in New Issue
Block a user