CRZbulabula commented on code in PR #16432:
URL: https://github.com/apache/iotdb/pull/16432#discussion_r2362180986


##########
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/auth/entity/User.java:
##########
@@ -56,6 +58,13 @@ public User(String name, String password) {
     this.roleSet = new HashSet<>();
   }
 
+  public User(String name, String password, long userId) {
+    super(name);
+    this.password = password;
+    this.userId = userId;
+    this.roleSet = new HashSet<>();
+  }
+

Review Comment:
   It is illegal for the case without userId. To address ur concern, we've 
added a `TestOnly` annotation to this function.



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