Skip to content

Commit

Permalink
Merge pull request #838 from k163377/fix-dep2
Browse files Browse the repository at this point in the history
Fixed not to reference enabledSingletonSupport
  • Loading branch information
k163377 authored Oct 13, 2024
2 parents 0c52167 + 9f37e87 commit 8c971d0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class KotlinModule private constructor(

context.addValueInstantiators(KotlinInstantiators(cache, nullToEmptyCollection, nullToEmptyMap, nullIsSameAsDefault, strictNullChecks))

if (enabledSingletonSupport) {
if (singletonSupport) {
context.addBeanDeserializerModifier(KotlinBeanDeserializerModifier)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class DslTest {
assertTrue(module.nullToEmptyCollection)
assertTrue(module.nullToEmptyMap)
assertTrue(module.nullIsSameAsDefault)
assertTrue(module.enabledSingletonSupport)
assertTrue(module.singletonSupport)
assertTrue(module.strictNullChecks)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class KotlinModuleTest {
assertFalse(module.nullToEmptyCollection)
assertFalse(module.nullToEmptyMap)
assertFalse(module.nullIsSameAsDefault)
assertFalse(module.enabledSingletonSupport)
assertFalse(module.singletonSupport)
assertFalse(module.strictNullChecks)
assertFalse(module.kotlinPropertyNameAsImplicitName)
assertFalse(module.useJavaDurationConversion)
Expand All @@ -40,7 +40,7 @@ class KotlinModuleTest {
assertTrue(module.nullToEmptyCollection)
assertTrue(module.nullToEmptyMap)
assertTrue(module.nullIsSameAsDefault)
assertTrue(module.enabledSingletonSupport)
assertTrue(module.singletonSupport)
assertTrue(module.strictNullChecks)
assertTrue(module.kotlinPropertyNameAsImplicitName)
assertTrue(module.useJavaDurationConversion)
Expand Down Expand Up @@ -79,7 +79,7 @@ class KotlinModuleTest {
enable(SingletonSupport)
}.build()

assertTrue(module.enabledSingletonSupport)
assertTrue(module.singletonSupport)
}

@Test
Expand Down Expand Up @@ -110,7 +110,7 @@ class KotlinModuleTest {
assertTrue(deserialized.nullToEmptyCollection)
assertTrue(deserialized.nullToEmptyMap)
assertTrue(deserialized.nullIsSameAsDefault)
assertTrue(deserialized.enabledSingletonSupport)
assertTrue(deserialized.singletonSupport)
assertTrue(deserialized.strictNullChecks)
}

Expand Down

0 comments on commit 8c971d0

Please sign in to comment.