Skip to content

Commit

Permalink
Remove default ctor args -- they're not needed anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
sandwwraith committed Jul 8, 2020
1 parent f9302ce commit 248b499
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ import kotlin.math.*
*/
internal const val MAX_SAFE_INTEGER: Double = 9007199254740991.toDouble() // 2^53 - 1

internal class DynamicObjectParser @OptIn(UnstableDefault::class) constructor(
override val context: SerialModule = EmptyModule,
internal val configuration: JsonConfiguration = JsonConfiguration.Default
internal class DynamicObjectParser(
override val context: SerialModule,
internal val configuration: JsonConfiguration
) : SerialFormat {
/**
* Deserializes given [obj] from dynamic form to type [T] using [deserializer].
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ import kotlin.math.*
* val plainJS: dynamic = DynamicObjectSerializer().serialize(DataWrapper.serializer(), wrapper)
* ```
*/
internal class DynamicObjectSerializer @OptIn(UnstableDefault::class) constructor(
public val context: SerialModule = EmptyModule,
private val configuration: JsonConfiguration = JsonConfiguration.Default
internal class DynamicObjectSerializer(
public val context: SerialModule,
private val configuration: JsonConfiguration
) {

public fun <T> serialize(strategy: SerializationStrategy<T>, obj: T): dynamic {
Expand Down

0 comments on commit 248b499

Please sign in to comment.