mirror of
https://github.com/revanced/jadb.git
synced 2025-02-14 02:56:48 +01:00
Add Closeable to Transport
This commit is contained in:
parent
9fe4111495
commit
6a4f5c38a1
@ -4,7 +4,7 @@ import java.io.*;
|
|||||||
import java.net.Socket;
|
import java.net.Socket;
|
||||||
import java.nio.charset.StandardCharsets;
|
import java.nio.charset.StandardCharsets;
|
||||||
|
|
||||||
class Transport {
|
class Transport implements Closeable {
|
||||||
|
|
||||||
private final OutputStream outputStream;
|
private final OutputStream outputStream;
|
||||||
private final InputStream inputStream;
|
private final InputStream inputStream;
|
||||||
@ -64,6 +64,7 @@ class Transport {
|
|||||||
return new SyncTransport(outputStream, inputStream);
|
return new SyncTransport(outputStream, inputStream);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void close() throws IOException {
|
public void close() throws IOException {
|
||||||
inputStream.close();
|
inputStream.close();
|
||||||
outputStream.close();
|
outputStream.close();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user