only:reducing method visibility

This commit is contained in:
rusefillc 2024-08-09 11:26:28 -04:00
parent 7363e80f3b
commit 3ca0108a65
1 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,16 @@
import com.rusefi.io.IoStream;
import com.rusefi.io.serial.BufferedSerialIoStream;
import com.rusefi.io.tcp.TcpConnector;
import com.rusefi.io.tcp.TcpIoStream;
import org.jetbrains.annotations.NotNull;
import java.io.IOException;
public class UiLinkManagerHelper {
@NotNull
public static IoStream open(String port) throws IOException {
if (TcpConnector.isTcpPort(port))
return TcpIoStream.open(port);
return BufferedSerialIoStream.openPort(port);
}
}