Skip to content

Commit

Permalink
fun interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
yschimke committed May 3, 2020
1 parent 22ff900 commit 9eccc9f
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class HttpLoggingInterceptor @JvmOverloads constructor(
BODY
}

interface Logger {
fun interface Logger {
fun log(message: String)

companion object {
Expand Down
2 changes: 1 addition & 1 deletion okhttp-sse/src/main/kotlin/okhttp3/sse/EventSource.kt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ interface EventSource {
*/
fun cancel()

interface Factory {
fun interface Factory {
/**
* Creates a new event source and immediately returns it. Creating an event source initiates an
* asynchronous process to connect the socket. Once that succeeds or fails, `listener` will be
Expand Down
2 changes: 1 addition & 1 deletion okhttp/src/main/kotlin/okhttp3/Authenticator.kt
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ import okhttp3.internal.authenticator.JavaNetAuthenticator
*
* [1]: https://tools.ietf.org/html/rfc2817
*/
interface Authenticator {
fun interface Authenticator {
/**
* Returns a request that includes a credential to satisfy an authentication challenge in
* [response]. Returns null if the challenge cannot be satisfied.
Expand Down
2 changes: 1 addition & 1 deletion okhttp/src/main/kotlin/okhttp3/Call.kt
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ interface Call : Cloneable {
*/
public override fun clone(): Call

interface Factory {
fun interface Factory {
fun newCall(request: Request): Call
}
}
2 changes: 1 addition & 1 deletion okhttp/src/main/kotlin/okhttp3/EventListener.kt
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ abstract class EventListener {
) {
}

interface Factory {
fun interface Factory {
/**
* Creates an instance of the [EventListener] for a particular [Call]. The returned
* [EventListener] instance will be used during the lifecycle of [call].
Expand Down
2 changes: 1 addition & 1 deletion okhttp/src/main/kotlin/okhttp3/Interceptor.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import java.util.concurrent.TimeUnit
* responses coming back in. Typically interceptors add, remove, or transform headers on the request
* or response.
*/
interface Interceptor {
fun interface Interceptor {
@Throws(IOException::class)
fun intercept(chain: Chain): Response

Expand Down
2 changes: 1 addition & 1 deletion okhttp/src/main/kotlin/okhttp3/WebSocket.kt
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ interface WebSocket {
*/
fun cancel()

interface Factory {
fun interface Factory {
/**
* Creates a new web socket and immediately returns it. Creating a web socket initiates an
* asynchronous process to connect the socket. Once that succeeds or fails, `listener` will be
Expand Down

0 comments on commit 9eccc9f

Please sign in to comment.