only:reducing method visibility
This commit is contained in:
parent
7363e80f3b
commit
3ca0108a65
|
@ -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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue