connector-j-8/src/main/java/com/google/cloud/sql/mysql/SocketFactory.java
public <T extends Closeable> T connect(
      String host, int portNumber, Properties props, int loginTimeout) throws IOException {
    @SuppressWarnings("unchecked")
    T socket =
        (T)
            CoreSocketFactory.getInstance()
                .connect(props, CoreSocketFactory.MYSQL_SOCKET_FILE_FORMAT);
    return socket;
  }
public <T extends Closeable> T connect(
      String host, int portNumber, Properties props, int loginTimeout) throws IOException {
    @SuppressWarnings("unchecked")
    T socket =
        (T)
            CoreSocketFactory.getInstance()
                .connect(props, CoreSocketFactory.MYSQL_SOCKET_FILE_FORMAT);
    return socket;
  }
Implements the interface for com.mysql.cj.protocol.SocketFactory for mysql-connector-java prior
to version 8.0.13. This change is required for backwards compatibility.