Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A8DA0200C86 for ; Wed, 31 May 2017 20:01:49 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A6F71160BCB; Wed, 31 May 2017 18:01:49 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id EF00D160BC2 for ; Wed, 31 May 2017 20:01:48 +0200 (CEST) Received: (qmail 81392 invoked by uid 500); 31 May 2017 18:01:48 -0000 Mailing-List: contact commits-help@asterixdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@asterixdb.apache.org Delivered-To: mailing list commits@asterixdb.apache.org Received: (qmail 81381 invoked by uid 99); 31 May 2017 18:01:47 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 May 2017 18:01:47 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 526F9DFB94; Wed, 31 May 2017 18:01:47 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: buyingyi@apache.org To: commits@asterixdb.apache.org Message-Id: <7d895cbaefdc42e9aa9d68458ad318f7@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: asterixdb git commit: Fix potential class cast exception in UnorderedListTypeDefinition Date: Wed, 31 May 2017 18:01:47 +0000 (UTC) archived-at: Wed, 31 May 2017 18:01:49 -0000 Repository: asterixdb Updated Branches: refs/heads/master aaaf749cb -> 745379ee1 Fix potential class cast exception in UnorderedListTypeDefinition Change-Id: I583d681ffe84bd73eebcb4acd07062f6b4a1460e Reviewed-on: https://asterix-gerrit.ics.uci.edu/1794 Reviewed-by: Yingyi Bu Sonar-Qube: Jenkins Integration-Tests: Jenkins Tested-by: Jenkins BAD: Jenkins Project: http://git-wip-us.apache.org/repos/asf/asterixdb/repo Commit: http://git-wip-us.apache.org/repos/asf/asterixdb/commit/745379ee Tree: http://git-wip-us.apache.org/repos/asf/asterixdb/tree/745379ee Diff: http://git-wip-us.apache.org/repos/asf/asterixdb/diff/745379ee Branch: refs/heads/master Commit: 745379ee135ea9f319ffecdcaec4592991a67e30 Parents: aaaf749 Author: Dmitry Lychagin Authored: Tue May 30 17:07:54 2017 -0700 Committer: Yingyi Bu Committed: Wed May 31 11:01:33 2017 -0700 ---------------------------------------------------------------------- .../lang/common/expression/UnorderedListTypeDefinition.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/asterixdb/blob/745379ee/asterixdb/asterix-lang-common/src/main/java/org/apache/asterix/lang/common/expression/UnorderedListTypeDefinition.java ---------------------------------------------------------------------- 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 @@ public class UnorderedListTypeDefinition implements TypeExpression { if (this == object) { return true; } - if (!(object instanceof OrderedListTypeDefinition)) { + if (!(object instanceof UnorderedListTypeDefinition)) { return false; } UnorderedListTypeDefinition target = (UnorderedListTypeDefinition) object;