You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2023/01/11 09:58:56 UTC
[GitHub] [pulsar] lhotari commented on a diff in pull request #19161: [improve][common] Add and register Jackson Java 8 support modules to Pulsar
lhotari commented on code in PR #19161:
URL: https://github.com/apache/pulsar/pull/19161#discussion_r1066794043
##########
pulsar-common/src/main/java/org/apache/pulsar/common/util/ObjectMapperFactory.java:
##########
@@ -109,7 +112,10 @@
@Slf4j
public class ObjectMapperFactory {
public static ObjectMapper create() {
- ObjectMapper mapper = new ObjectMapper();
+ ObjectMapper mapper = new ObjectMapper()
+ .registerModule(new ParameterNamesModule())
Review Comment:
The point of this is to allow using parameter names in your own Java classes without any special config.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org