QiuMM commented on a change in pull request #6386: Prohibit jackson
ObjectMapper#reader methods which are deprecated
URL: https://github.com/apache/incubator-druid/pull/6386#discussion_r220779778
##########
File path:
extensions-contrib/ambari-metrics-emitter/src/test/java/org/apache/druid/emitter/ambari/metrics/AmbariMetricsEmitterConfigTest.java
##########
@@ -70,7 +70,7 @@ public void testSerDeAmbariMetricsEmitterConfig() throws
IOException
public void testSerDeDruidToTimelineEventConverter() throws IOException
{
SendAllTimelineEventConverter sendAllConverter = new
SendAllTimelineEventConverter("prefix", "druid");
- DruidToTimelineMetricConverter serde =
mapper.reader(DruidToTimelineMetricConverter.class)
+ DruidToTimelineMetricConverter serde =
mapper.readerFor(DruidToTimelineMetricConverter.class)
.readValue(mapper.writeValueAsBytes(sendAllConverter));
Review comment:
Done.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]