You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@linkis.apache.org by pe...@apache.org on 2022/03/05 09:04:19 UTC

[incubator-linkis] 06/18: 1. linkis-manager-common - refactor equal method in PersistenceLabel

This is an automated email from the ASF dual-hosted git repository.

peacewong pushed a commit to branch dev-1.1.1
in repository https://gitbox.apache.org/repos/asf/incubator-linkis.git

commit 294da24269f17bafecd85b25be01435cfc296f21
Author: alexkun <xu...@qq.com>
AuthorDate: Fri Mar 4 17:50:53 2022 +0800

    1. linkis-manager-common - refactor equal method in PersistenceLabel
---
 .../linkis/manager/common/entity/persistence/PersistenceLabel.java | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/linkis-computation-governance/linkis-manager/linkis-manager-commons/linkis-manager-common/src/main/java/org/apache/linkis/manager/common/entity/persistence/PersistenceLabel.java b/linkis-computation-governance/linkis-manager/linkis-manager-commons/linkis-manager-common/src/main/java/org/apache/linkis/manager/common/entity/persistence/PersistenceLabel.java
index 4f0c1cb..c2fddb1 100644
--- a/linkis-computation-governance/linkis-manager/linkis-manager-commons/linkis-manager-common/src/main/java/org/apache/linkis/manager/common/entity/persistence/PersistenceLabel.java
+++ b/linkis-computation-governance/linkis-manager/linkis-manager-commons/linkis-manager-common/src/main/java/org/apache/linkis/manager/common/entity/persistence/PersistenceLabel.java
@@ -94,8 +94,11 @@ public class PersistenceLabel extends GenericLabel {
     @Override
     public boolean equals(Object o) {
         if (this == o) return true;
-        if (o == null || getClass() != o.getClass()) return false;
-        if (!super.equals(o)) return false;
+        if (o == null || getClass() != o.getClass())  {
+            return false;
+        } else if (!super.equals(o)) {
+            return false;
+        }
 
         PersistenceLabel that = (PersistenceLabel) o;
 

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org