Skip to content

Commit 2ee58d2

Browse files
authored
Merge pull request #752 from k163377/fix-docs
Fix KDoc for KotlinModule.
2 parents b2be4ae + c22e644 commit 2ee58d2

File tree

3 files changed

+22
-19
lines changed

3 files changed

+22
-19
lines changed

release-notes/CREDITS-2.x

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Contributors:
1818
# 2.17.0 (not yet released)
1919

2020
WrongWrong (@k163377)
21+
* #752: Fix KDoc for KotlinModule.
2122
* #751: Marked useKotlinPropertyNameForGetter as deprecated.
2223
* #747: Improved performance related to KotlinModule initialization and setupModule.
2324
* #746: The KotlinModule#serialVersionUID is set to private.

release-notes/VERSION-2.x

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ Co-maintainers:
2626
#745: Modified isKotlinClass determination method.
2727
#744: Functions that were already marked as deprecated,
2828
such as the primary constructor in KotlinModule and some functions in Builder,
29-
are scheduled for removal in 2.18 and their DeprecationLevel has been raised to Error.
30-
Hidden constructors that were left in for compatibility are also marked for removal.
31-
This PR also adds a hidden no-argument constructor to facilitate initialization from reflection.
32-
See the PR for details.
29+
are scheduled for removal in 2.18 and their DeprecationLevel has been raised to Error.
30+
Hidden constructors that were left in for compatibility are also marked for removal.
31+
This PR also adds a hidden no-argument constructor to facilitate initialization from reflection.
32+
See the PR for details.
3333
#743: The handling of deserialization using vararg arguments has been improved to allow deserialization even when the input to the vararg argument is undefined.
3434
In addition, vararg arguments are now reported as non-required.
3535
#742: Minor performance improvements to NullToEmptyCollection/Map.

src/main/kotlin/com/fasterxml/jackson/module/kotlin/KotlinModule.kt

+17-15
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,23 @@ import kotlin.reflect.KClass
1616
fun Class<*>.isKotlinClass(): Boolean = this.isAnnotationPresent(Metadata::class.java)
1717

1818
/**
19-
* @param reflectionCacheSize Default: 512. Size, in items, of the caches used for mapping objects.
20-
* @param nullToEmptyCollection Default: false. Whether to deserialize null values for collection properties as
21-
* empty collections.
22-
* @param nullToEmptyMap Default: false. Whether to deserialize null values for a map property to an empty
23-
* map object.
24-
* @param nullIsSameAsDefault Default false. Whether to treat null values as absent when deserializing, thereby
25-
* using the default value provided in Kotlin.
26-
* @param singletonSupport Default: DISABLED. Mode for singleton handling.
27-
* See {@link com.fasterxml.jackson.module.kotlin.SingletonSupport label}
28-
* @param strictNullChecks Default: false. Whether to check deserialized collections. With this disabled,
29-
* the default, collections which are typed to disallow null members
30-
* (e.g. List<String>) may contain null values after deserialization. Enabling it
31-
* protects against this but has significant performance impact.
32-
* @param useJavaDurationConversion Default: false. Whether to use [java.time.Duration] as a bridge for [kotlin.time.Duration].
33-
* This allows use Kotlin Duration type with [com.fasterxml.jackson.datatype.jsr310.JavaTimeModule].
19+
* @property reflectionCacheSize Default: 512. Size, in items, of the caches used for mapping objects.
20+
* @property nullToEmptyCollection Default: false. Whether to deserialize null values for collection properties as
21+
* empty collections.
22+
* @property nullToEmptyMap Default: false. Whether to deserialize null values for a map property to an empty
23+
* map object.
24+
* @property nullIsSameAsDefault Default false. Whether to treat null values as absent when deserializing, thereby
25+
* using the default value provided in Kotlin.
26+
* @property singletonSupport Default: DISABLED. Mode for singleton handling.
27+
* See {@link com.fasterxml.jackson.module.kotlin.SingletonSupport label}
28+
* @property strictNullChecks Default: false. Whether to check deserialized collections. With this disabled,
29+
* the default, collections which are typed to disallow null members
30+
* (e.g. List<String>) may contain null values after deserialization. Enabling it
31+
* protects against this but has significant performance impact.
32+
* @property kotlinPropertyNameAsImplicitName Default: false. Whether to use the Kotlin property name as the implicit name.
33+
* See [KotlinFeature.KotlinPropertyNameAsImplicitName] for details.
34+
* @property useJavaDurationConversion Default: false. Whether to use [java.time.Duration] as a bridge for [kotlin.time.Duration].
35+
* This allows use Kotlin Duration type with [com.fasterxml.jackson.datatype.jsr310.JavaTimeModule].
3436
*/
3537
class KotlinModule @Deprecated(
3638
level = DeprecationLevel.ERROR,

0 commit comments

Comments
 (0)