Copilot commented on code in PR #7400:
URL: https://github.com/apache/incubator-seata/pull/7400#discussion_r2128682310


##########
spring/src/test/java/org/apache/seata/spring/util/OrderUtilTest.java:
##########
@@ -99,6 +121,7 @@ public void test_lower() {
         assertThat(OrderUtil.lower(Ordered.LOWEST_PRECEDENCE, 
1)).isEqualTo(Ordered.LOWEST_PRECEDENCE);
 
         Assertions.assertThrows(IllegalArgumentException.class, () -> 
OrderUtil.lower(1, -1));
+        assertThat((OrderUtil.lower(null, 1))).isEqualTo(Integer.MAX_VALUE);

Review Comment:
   [nitpick] Redundant parentheses around OrderUtil.lower(null, 1) can be 
removed for better readability.
   ```suggestion
           assertThat(OrderUtil.lower(null, 1)).isEqualTo(Integer.MAX_VALUE);
   ```



-- 
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: notifications-unsubscr...@seata.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@seata.apache.org
For additional commands, e-mail: notifications-h...@seata.apache.org

Reply via email to