commit | 745379ee135ea9f319ffecdcaec4592991a67e30 | [log] [tgz] |
---|---|---|
author | Dmitry Lychagin <dmitry.lychagin@couchbase.com> | Tue May 30 17:07:54 2017 -0700 |
committer | Yingyi Bu <buyingyi@gmail.com> | Wed May 31 11:01:33 2017 -0700 |
tree | 8ec364dbe647b24958e1510a32826670d4d6d4a7 | |
parent | aaaf749cbd75bf2536ee40be99aeaaaf439d9d49 [diff] |
Fix potential class cast exception in UnorderedListTypeDefinition Change-Id: I583d681ffe84bd73eebcb4acd07062f6b4a1460e Reviewed-on: https://asterix-gerrit.ics.uci.edu/1794 Reviewed-by: Yingyi Bu <buyingyi@gmail.com> Sonar-Qube: Jenkins <jenkins@fulliautomatix.ics.uci.edu> Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu> Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu> BAD: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
diff --git a/asterixdb/asterix-lang-common/src/main/java/org/apache/asterix/lang/common/expression/UnorderedListTypeDefinition.java b/asterixdb/asterix-lang-common/src/main/java/org/apache/asterix/lang/common/expression/UnorderedListTypeDefinition.java index ad6426e..48be7d2 100644 --- a/asterixdb/asterix-lang-common/src/main/java/org/apache/asterix/lang/common/expression/UnorderedListTypeDefinition.java +++ b/asterixdb/asterix-lang-common/src/main/java/org/apache/asterix/lang/common/expression/UnorderedListTypeDefinition.java
@@ -54,7 +54,7 @@ if (this == object) { return true; } - if (!(object instanceof OrderedListTypeDefinition)) { + if (!(object instanceof UnorderedListTypeDefinition)) { return false; } UnorderedListTypeDefinition target = (UnorderedListTypeDefinition) object;