Skip to content

Commit 191024f

Browse files
authored
Expose the getter for the Converter in StdDelegatingSerializer (#5316)
1 parent 1e87e0a commit 191024f

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

release-notes/VERSION-2.x

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ Project: jackson-databind
1111
(reported by @wrongwrong)
1212
#5293: Fix minor typo in `PropertyBindingException.getMessageSuffix()`
1313
(reported by Johny L)
14+
#5313: Expose `getConverter()` in `StdDelegatingSerializer` for improved
15+
customizability
16+
(contributed by @wrongwrong)
1417

1518
2.20.1 (not yet released)
1619

@@ -33,8 +36,8 @@ Project: jackson-databind
3336
#4136: Drop deprecated (in 2.12) `PropertyNamingStrategy` implementations
3437
from 2.20
3538
#4218: If `@JacksonInject` is specified for field and deserialized by the Creator,
36-
the inject process will be executed twice
37-
(reported by @wrongwrong)
39+
the inject process will be executed twice
40+
(reported by @wrongwrong)
3841
(fix by Giulio L)
3942
#4656: `DeserializationProblemHandler.handleUnexpectedToken()` cast Object to String
4043
(reported by @yacine-pc)

src/main/java/com/fasterxml/jackson/databind/ser/std/StdDelegatingSerializer.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,14 @@ public JsonSerializer<?> createContextual(SerializerProvider provider, BeanPrope
136136
/**********************************************************
137137
*/
138138

139-
protected Converter<Object, ?> getConverter() {
139+
/**
140+
* Accessor to the {@link Converter} used for conversion.
141+
*
142+
* @return {@link Converter} used for conversion
143+
*
144+
* @since 2.21
145+
*/
146+
public Converter<Object, ?> getConverter() {
140147
return _converter;
141148
}
142149

0 commit comments

Comments
 (0)