fix: checkstyle.

This commit is contained in:
huanghongxun
2022-09-25 00:31:51 +08:00
parent 8d830dbf96
commit d817c80629
2 changed files with 1 additions and 5 deletions

View File

@@ -25,9 +25,6 @@ import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
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.charset.StandardCharsets;
import java.util.logging.Level;
@@ -105,7 +102,7 @@ public class LocalServerBroadcaster implements AutoCloseable {
}
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];
while (true) {
int len = is.read(buf, 0, buf.length);

View File

@@ -22,7 +22,6 @@ import com.jfoenix.controls.JFXPasswordField;
import com.jfoenix.controls.JFXTextField;
import javafx.beans.binding.Bindings;
import javafx.collections.ObservableList;
import javafx.geometry.HPos;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.Node;