diff --git a/android-test/src/test/kotlin/okhttp3/android/CombinedAsyncDnsTest.kt b/android-test/src/test/kotlin/okhttp3/android/CombinedAsyncDnsTest.kt index ad4b57e54edf..e6c37f2ac37a 100644 --- a/android-test/src/test/kotlin/okhttp3/android/CombinedAsyncDnsTest.kt +++ b/android-test/src/test/kotlin/okhttp3/android/CombinedAsyncDnsTest.kt @@ -14,6 +14,7 @@ * limitations under the License. */ @file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE") + package okhttp3.android import assertk.all diff --git a/android-test/src/test/kotlin/okhttp3/android/RecordingAsyncDnsCallback.kt b/android-test/src/test/kotlin/okhttp3/android/RecordingAsyncDnsCallback.kt index ce107419788d..8b88a9cb1729 100644 --- a/android-test/src/test/kotlin/okhttp3/android/RecordingAsyncDnsCallback.kt +++ b/android-test/src/test/kotlin/okhttp3/android/RecordingAsyncDnsCallback.kt @@ -14,6 +14,7 @@ * limitations under the License. */ @file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE") + package okhttp3.android import java.net.InetAddress diff --git a/okhttp/src/androidMain/kotlin/okhttp3/android/internal/AndroidSocketFactory.kt b/okhttp/src/androidMain/kotlin/okhttp3/android/internal/AndroidSocketFactory.kt index e1d0e9de9699..1e5d48db6786 100644 --- a/okhttp/src/androidMain/kotlin/okhttp3/android/internal/AndroidSocketFactory.kt +++ b/okhttp/src/androidMain/kotlin/okhttp3/android/internal/AndroidSocketFactory.kt @@ -17,14 +17,14 @@ package okhttp3.android.internal import android.net.Network import android.os.Build -import okhttp3.ExperimentalOkHttpApi import java.net.InetAddress import java.net.Socket import javax.net.SocketFactory +import okhttp3.ExperimentalOkHttpApi @ExperimentalOkHttpApi internal class AndroidSocketFactory( - val network: Network, + val network: Network, ) : SocketFactory() { private val socketFactory: SocketFactory = network.socketFactory @@ -40,26 +40,26 @@ internal class AndroidSocketFactory( } override fun createSocket( - host: String?, - port: Int, - localHost: InetAddress?, - localPort: Int, + host: String?, + port: Int, + localHost: InetAddress?, + localPort: Int, ): Socket { return socketFactory.createSocket(host, port, localHost, localPort) } override fun createSocket( - host: InetAddress?, - port: Int, + host: InetAddress?, + port: Int, ): Socket { return socketFactory.createSocket(host, port) } override fun createSocket( - address: InetAddress?, - port: Int, - localAddress: InetAddress?, - localPort: Int, + address: InetAddress?, + port: Int, + localAddress: InetAddress?, + localPort: Int, ): Socket { return socketFactory.createSocket(address, port, localAddress, localPort) }