Skip to content

Commit dfa0575

Browse files
committed
🐛 fix typo
1 parent bbfcf57 commit dfa0575

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

library/src/main/kotlin/wu/seal/jsontokotlin/JsonToKotlinBuilder.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ class JsonToKotlinBuilder {
119119
return this
120120
}
121121

122-
fun enabelMapType(isMapType: Boolean): JsonToKotlinBuilder {
122+
fun enableMapType(isMapType: Boolean): JsonToKotlinBuilder {
123123
TestConfig.enableMapType = isMapType
124124
return this
125125
}

library/src/test/kotlin/wu/seal/jsontokotlin/JsonToKotlinBuilderTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class JsonToKotlinBuilderTest {
3232
.enableComments(true) // optional, default : false
3333
.enableOrderByAlphabetic(true) // optional : default : false
3434
.enableInnerClassModel(true) // optional, default : false
35-
.enabelMapType(true)// optional, default : false
35+
.enableMapType(true)// optional, default : false
3636
.enableCreateAnnotationOnlyWhenNeeded(true) // optional, default : false
3737
.setIndent(4)// optional, default : 4
3838
.setParentClassTemplate("android.os.Parcelable") // optional, default : ""
@@ -770,7 +770,7 @@ class JsonToKotlinBuilderTest {
770770
""".trimIndent()
771771

772772
val actualOutput = JsonToKotlinBuilder()
773-
.enabelMapType(true)
773+
.enableMapType(true)
774774
.build(input, "Model")
775775

776776
actualOutput.should.be.equal(expectedOutput)

0 commit comments

Comments
 (0)