DL1231 commented on code in PR #20614:
URL: https://github.com/apache/kafka/pull/20614#discussion_r2544116035


##########
clients/src/main/java/org/apache/kafka/common/protocol/types/Schema.java:
##########
@@ -53,6 +58,7 @@ public Schema(Field... fs) {
      *
      * @throws SchemaException If the given list have duplicate fields
      */
+    @SuppressWarnings("this-escape")

Review Comment:
   This annotation is needed to suppress a new Java compiler warning about a 
potential `this` escape during object construction. 
   https://github.com/apache/kafka/actions/runs/18640610101/job/53138690877
   <pre>
   Execution failed for task ':clients:compileJava'.
   > Compilation failed; see the compiler output below.
     error: warnings found and -Werror specified
     
/home/runner/work/kafka/kafka/clients/src/main/java/org/apache/kafka/common/protocol/types/Schema.java:69:
 warning: [this-escape] possible 'this' escape before subclass is fully 
initialized
                 this.fields[i] = new BoundField(def, this, i);
                                                      ^
   </pre> 



-- 
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