You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by co...@apache.org on 2018/10/23 14:58:36 UTC
[cxf] 01/02: Add instanceof to the equals method
This is an automated email from the ASF dual-hosted git repository.
coheigea pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cxf.git
commit cfab2ec2eced0dc0b026bc4bfbeeb18fff28e1b6
Author: Colm O hEigeartaigh <co...@apache.org>
AuthorDate: Tue Oct 23 13:13:05 2018 +0100
Add instanceof to the equals method
---
.../main/java/org/apache/cxf/aegis/type/SimpleParameterizedType.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/SimpleParameterizedType.java b/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/SimpleParameterizedType.java
index 5ff5261..e8c3143 100644
--- a/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/SimpleParameterizedType.java
+++ b/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/SimpleParameterizedType.java
@@ -66,7 +66,7 @@ class SimpleParameterizedType implements ParameterizedType {
if (this == obj) {
return true;
}
- if (obj == null) {
+ if (!(obj instanceof ParameterizedType)) {
return false;
}