wuchong commented on a change in pull request #11080: [FLINK-15988][json] Make 
JsonRowSerializationSchema's constructor private
URL: https://github.com/apache/flink/pull/11080#discussion_r380085386
 
 

 ##########
 File path: 
flink-formats/flink-json/src/main/java/org/apache/flink/formats/json/JsonRowSerializationSchema.java
 ##########
 @@ -99,35 +94,66 @@ public JsonRowSerializationSchema(TypeInformation<Row> 
typeInfo) {
        @PublicEvolving
        public static class Builder {
 
-               private final RowTypeInfo typeInfo;
+               private RowTypeInfo typeInfo;
+
+               private Builder() {
+                       // private constructor
+               }
 
                /**
+                * @deprecated Use {@link JsonRowSerializationSchema#builder()} 
instead.
 
 Review comment:
   Put the `@deprecated` comment after `@param`.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to