yanghua commented on a change in pull request #1073:
URL: https://github.com/apache/incubator-kyuubi/pull/1073#discussion_r706612339
##########
File path:
kyuubi-server/src/main/java/org/apache/kyuubi/server/api/v1/dto/SessionOpenedCount.java
##########
@@ -33,4 +34,21 @@ public int getOpenSessionCount() {
public void setOpenSessionCount(int openSessionCount) {
this.openSessionCount = openSessionCount;
}
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (!(o instanceof SessionOpenedCount)) {
+ return false;
+ }
+ SessionOpenedCount that = (SessionOpenedCount) o;
+ return getOpenSessionCount() == that.getOpenSessionCount();
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(getOpenSessionCount());
Review comment:
OK
--
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]