Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
yschimke committed Jan 4, 2025
1 parent e3ea3a8 commit 6995217
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* limitations under the License.
*/
@file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")

package okhttp3.android

import assertk.all
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* limitations under the License.
*/
@file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")

package okhttp3.android

import java.net.InetAddress
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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)
}
Expand Down

0 comments on commit 6995217

Please sign in to comment.