fix: checkstyle.
This commit is contained in:
@@ -25,9 +25,6 @@ import java.io.IOException;
|
|||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
import java.net.*;
|
import java.net.*;
|
||||||
import java.nio.ByteBuffer;
|
|
||||||
import java.nio.channels.ServerSocketChannel;
|
|
||||||
import java.nio.channels.SocketChannel;
|
|
||||||
import java.nio.channels.UnresolvedAddressException;
|
import java.nio.channels.UnresolvedAddressException;
|
||||||
import java.nio.charset.StandardCharsets;
|
import java.nio.charset.StandardCharsets;
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
@@ -105,7 +102,7 @@ public class LocalServerBroadcaster implements AutoCloseable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void forwardTraffic(Socket src, Socket dest) {
|
private void forwardTraffic(Socket src, Socket dest) {
|
||||||
try(InputStream is = src.getInputStream(); OutputStream os = dest.getOutputStream()) {
|
try (InputStream is = src.getInputStream(); OutputStream os = dest.getOutputStream()) {
|
||||||
byte[] buf = new byte[1024];
|
byte[] buf = new byte[1024];
|
||||||
while (true) {
|
while (true) {
|
||||||
int len = is.read(buf, 0, buf.length);
|
int len = is.read(buf, 0, buf.length);
|
||||||
|
|||||||
@@ -22,7 +22,6 @@ import com.jfoenix.controls.JFXPasswordField;
|
|||||||
import com.jfoenix.controls.JFXTextField;
|
import com.jfoenix.controls.JFXTextField;
|
||||||
import javafx.beans.binding.Bindings;
|
import javafx.beans.binding.Bindings;
|
||||||
import javafx.collections.ObservableList;
|
import javafx.collections.ObservableList;
|
||||||
import javafx.geometry.HPos;
|
|
||||||
import javafx.geometry.Insets;
|
import javafx.geometry.Insets;
|
||||||
import javafx.geometry.Pos;
|
import javafx.geometry.Pos;
|
||||||
import javafx.scene.Node;
|
import javafx.scene.Node;
|
||||||
|
|||||||
Reference in New Issue
Block a user