Skip to content

Commit

Permalink
feat: add @SInCE to new public methods
Browse files Browse the repository at this point in the history
  • Loading branch information
jin-harmoney committed Feb 7, 2025
1 parent d2ed33f commit df69ab1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -713,6 +713,8 @@ public final KeyDeserializer findKeyDeserializer(JavaType keyType,
* This can be used to remove memory usage (in case some deserializers are
* only used once or so), or to force re-construction of deserializers after
* configuration changes for mapper than owns the provider.
* @since 2.19
*/
public void flushCachedDeserializers() {
_cache.flushCachedDeserializers();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4799,6 +4799,8 @@ public void acceptJsonFormatVisitor(JavaType type, JsonFormatVisitorWrapper visi
* Method that will clear all caches.
* This can be used to remove memory usage or to force re-construction cached entries after configuration changes.
* Can also be used to avoid class-loader memory leaks when reloading applications.
* @since 2.19
*/
public void clearCaches() {
_rootDeserializers.clear();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1291,6 +1291,8 @@ public final void defaultSerializeNull(JsonGenerator gen) throws IOException
* This can be used to remove memory usage (in case some serializers are
* only used once or so), or to force re-construction of serializers after
* configuration changes for mapper than owns the provider.
* @since 2.19
*/
public void flushCachedSerializers() {
_serializerCache.flush();
Expand Down

0 comments on commit df69ab1

Please sign in to comment.