Skip to content

Commit 2e98bdf

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
fix(client): make some classes and constructors non-public (#466)
chore(internal): remove some unnecessary `constructor` keywords
1 parent a6c1769 commit 2e98bdf

File tree

328 files changed

+712
-769
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

328 files changed

+712
-769
lines changed

lithic-java-client-okhttp/src/main/kotlin/com/lithic/api/client/okhttp/LithicOkHttpClient.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class LithicOkHttpClient private constructor() {
2222
@JvmStatic fun fromEnv(): LithicClient = builder().fromEnv().build()
2323
}
2424

25-
class Builder {
25+
class Builder internal constructor() {
2626

2727
private var clientOptions: ClientOptions.Builder = ClientOptions.builder()
2828
private var baseUrl: String = ClientOptions.PRODUCTION_URL

lithic-java-client-okhttp/src/main/kotlin/com/lithic/api/client/okhttp/LithicOkHttpClientAsync.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class LithicOkHttpClientAsync private constructor() {
2222
@JvmStatic fun fromEnv(): LithicClientAsync = builder().fromEnv().build()
2323
}
2424

25-
class Builder {
25+
class Builder internal constructor() {
2626

2727
private var clientOptions: ClientOptions.Builder = ClientOptions.builder()
2828
private var baseUrl: String = ClientOptions.PRODUCTION_URL

lithic-java-client-okhttp/src/main/kotlin/com/lithic/api/client/okhttp/OkHttpClient.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ private constructor(private val okHttpClient: okhttp3.OkHttpClient, private val
171171
@JvmStatic fun builder() = Builder()
172172
}
173173

174-
class Builder {
174+
class Builder internal constructor() {
175175

176176
private var baseUrl: HttpUrl? = null
177177
// The default timeout is 1 minute.

lithic-java-core/src/main/kotlin/com/lithic/api/client/LithicClientAsyncImpl.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@ import com.lithic.api.services.async.WebhookServiceAsync
6868
import com.lithic.api.services.async.WebhookServiceAsyncImpl
6969
import java.util.concurrent.CompletableFuture
7070

71-
class LithicClientAsyncImpl
72-
constructor(
71+
class LithicClientAsyncImpl(
7372
private val clientOptions: ClientOptions,
7473
) : LithicClientAsync {
7574

lithic-java-core/src/main/kotlin/com/lithic/api/client/LithicClientImpl.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ import com.lithic.api.services.blocking.TransferServiceImpl
6767
import com.lithic.api.services.blocking.WebhookService
6868
import com.lithic.api.services.blocking.WebhookServiceImpl
6969

70-
class LithicClientImpl
71-
constructor(
70+
class LithicClientImpl(
7271
private val clientOptions: ClientOptions,
7372
) : LithicClient {
7473

lithic-java-core/src/main/kotlin/com/lithic/api/core/ClientOptions.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ private constructor(
3939
@JvmStatic fun fromEnv(): ClientOptions = builder().fromEnv().build()
4040
}
4141

42-
class Builder {
42+
class Builder internal constructor() {
4343

4444
private var httpClient: HttpClient? = null
4545
private var jsonMapper: JsonMapper = jsonMapper()

lithic-java-core/src/main/kotlin/com/lithic/api/core/RequestOptions.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ private constructor(
2323
@JvmStatic fun builder() = Builder()
2424
}
2525

26-
class Builder {
26+
class Builder internal constructor() {
27+
2728
private var responseValidation: Boolean? = null
2829
private var timeout: Duration? = null
2930

lithic-java-core/src/main/kotlin/com/lithic/api/core/http/Headers.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ private constructor(
2222
@JvmStatic fun builder() = Builder()
2323
}
2424

25-
class Builder {
25+
class Builder internal constructor() {
2626

2727
private val map: MutableMap<String, MutableList<String>> =
2828
TreeMap(String.CASE_INSENSITIVE_ORDER)

lithic-java-core/src/main/kotlin/com/lithic/api/core/http/HttpRequest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ private constructor(
2222
@JvmStatic fun builder() = Builder()
2323
}
2424

25-
class Builder {
25+
class Builder internal constructor() {
2626

2727
private var method: HttpMethod? = null
2828
private var url: String? = null

lithic-java-core/src/main/kotlin/com/lithic/api/core/http/QueryParams.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ private constructor(
2121
@JvmStatic fun builder() = Builder()
2222
}
2323

24-
class Builder {
24+
class Builder internal constructor() {
2525

2626
private val map: MutableMap<String, MutableList<String>> = mutableMapOf()
2727
private var size: Int = 0

0 commit comments

Comments
 (0)