Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-37854

Use type match to simplify TestUtils#withHttpConnection

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 3.3.0
    • 3.3.0
    • Spark Core
    • None

    Description

      if (connection.isInstanceOf[HttpsURLConnection]) {
            ....
            connection.asInstanceOf[HttpsURLConnection].setSSLSocketFactory(sslCtx.getSocketFactory())
            connection.asInstanceOf[HttpsURLConnection].setHostnameVerifier(verifier) 

      Attachments

        Activity

          People

            LuciferYang Yang Jie
            LuciferYang Yang Jie
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: