X-czh commented on code in PR #25799:
URL: https://github.com/apache/flink/pull/25799#discussion_r1896401652


##########
docs/content/docs/dev/datastream/fault-tolerance/serialization/third_party_serializers.md:
##########
@@ -45,8 +45,8 @@ You could also programmatically set it as follows:
 Configuration config = new Configuration();
 
 // register the class of the serializer as serializer for a type
-config.set(PipelineOptions.SERIALIZATION_CONFIG, 
-    "[org.example.MyCustomType: {type: kryo, kryo-type: registered, class: 
org.example.MyCustomSerializer}]");
+config.set(PipelineOptions.SERIALIZATION_CONFIG,
+    List.of("org.example.MyCustomType: {type: kryo, kryo-type: registered, 
class: org.example.MyCustomSerializer}"));

Review Comment:
   Hi, "List.of" is also a valid Java way and is not related to Scala.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to