jerqi commented on code in PR #4894:
URL: https://github.com/apache/gravitino/pull/4894#discussion_r1775228297


##########
common/src/main/java/org/apache/gravitino/dto/responses/RoleResponse.java:
##########
@@ -64,8 +64,5 @@ public void validate() throws IllegalArgumentException {
     Preconditions.checkArgument(
         StringUtils.isNotBlank(role.name()), "role 'name' must not be null and 
empty");
     Preconditions.checkArgument(role.auditInfo() != null, "role 'auditInfo' 
must not be null");
-    Preconditions.checkArgument(
-        role.securableObjects() != null && !role.securableObjects().isEmpty(),
-        "role 'securableObjects' can't null or empty");

Review Comment:
   Ditto. Modified, too.



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