davidradl commented on code in PR #26473: URL: https://github.com/apache/flink/pull/26473#discussion_r2050457100
########## flink-formats/flink-json/src/main/java/org/apache/flink/formats/json/AbstractJsonDeserializationSchema.java: ########## @@ -89,6 +101,31 @@ public void open(InitializationContext context) throws Exception { if (hasDecimalType) { objectMapper.enable(DeserializationFeature.USE_BIG_DECIMAL_FOR_FLOATS); } + reusableCollectList = new ArrayList<>(); + collector = new ListCollector<>(reusableCollectList); + } + + /** + * NOTICE: We prefer to keep only {@link DeserializationSchema#deserialize(byte[], Collector)}, + * however, {@link DeserializationSchema#deserialize(byte[])} has not been deprecated now, hence Review Comment: nit: has not been deprecated now -> is not deprecated. I suggest having a sentence : `We intend to deprecate ...` referring to a Jira that tracks this item of work. -- 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: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org