Jiabao-Sun commented on code in PR #24603:
URL: https://github.com/apache/flink/pull/24603#discussion_r1552046876


##########
flink-core/src/test/java/org/apache/flink/api/java/typeutils/runtime/RowComparatorTest.java:
##########
@@ -159,7 +160,7 @@ public boolean equals(Object o) {
 
             MyPojo myPojo = (MyPojo) o;
 
-            return name != null ? name.equals(myPojo.name) : myPojo.name == 
null;
+            return Objects.equals(name, myPojo.name);

Review Comment:
   We don't need these changes int this PR.



##########
flink-core/src/test/java/org/apache/flink/api/java/typeutils/runtime/PojoSubclassSerializerTest.java:
##########
@@ -98,10 +98,7 @@ public boolean equals(Object other) {
             if (dumm1 != otherTUC.dumm1) {
                 return false;
             }
-            if (!dumm2.equals(otherTUC.dumm2)) {
-                return false;
-            }
-            return true;
+            return dumm2.equals(otherTUC.dumm2);

Review Comment:
   We don't need these changes in this PR.



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

Reply via email to