cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject [1/2] git commit: [CXF-5908] - Making Claims clonable. Thanks to Jan Bernhardt for the patch
Date Fri, 01 Aug 2014 16:00:47 GMT
Repository: cxf
Updated Branches:
  refs/heads/master c0198033b -> 7ec0f0807


[CXF-5908] - Making Claims clonable. Thanks to Jan Bernhardt for the patch


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/7ec0f080
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/7ec0f080
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/7ec0f080

Branch: refs/heads/master
Commit: 7ec0f080764361e687e9a3fb5b07c45336d7c3e1
Parents: 98f65f2
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Fri Aug 1 16:59:36 2014 +0100
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Fri Aug 1 17:00:33 2014 +0100

----------------------------------------------------------------------
 .../src/main/java/org/apache/cxf/rt/security/claims/Claim.java   | 3 ---
 .../src/main/java/org/apache/cxf/sts/claims/ProcessedClaim.java  | 4 ++--
 2 files changed, 2 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/7ec0f080/rt/security/src/main/java/org/apache/cxf/rt/security/claims/Claim.java
----------------------------------------------------------------------
diff --git a/rt/security/src/main/java/org/apache/cxf/rt/security/claims/Claim.java b/rt/security/src/main/java/org/apache/cxf/rt/security/claims/Claim.java
index c97a8b9..668efc1 100644
--- a/rt/security/src/main/java/org/apache/cxf/rt/security/claims/Claim.java
+++ b/rt/security/src/main/java/org/apache/cxf/rt/security/claims/Claim.java
@@ -147,9 +147,6 @@ public class Claim implements Serializable, Cloneable {
         if (this == obj) {
             return true;
         }
-        if (obj == null) {
-            return false;
-        }
         if (!(obj instanceof Claim)) {
             return false;
         }

http://git-wip-us.apache.org/repos/asf/cxf/blob/7ec0f080/services/sts/sts-core/src/main/java/org/apache/cxf/sts/claims/ProcessedClaim.java
----------------------------------------------------------------------
diff --git a/services/sts/sts-core/src/main/java/org/apache/cxf/sts/claims/ProcessedClaim.java
b/services/sts/sts-core/src/main/java/org/apache/cxf/sts/claims/ProcessedClaim.java
index c99b5f0..7dd43e7 100644
--- a/services/sts/sts-core/src/main/java/org/apache/cxf/sts/claims/ProcessedClaim.java
+++ b/services/sts/sts-core/src/main/java/org/apache/cxf/sts/claims/ProcessedClaim.java
@@ -103,10 +103,10 @@ public class ProcessedClaim extends Claim {
         if (this == obj) {
             return true;
         }
-        if (!super.equals(obj)) {
+        if (!(obj instanceof ProcessedClaim)) {
             return false;
         }
-        if (!(obj instanceof ProcessedClaim)) {
+        if (!super.equals(obj)) {
             return false;
         }
         ProcessedClaim other = (ProcessedClaim)obj;


Mime
View raw message