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 BEE88200CD2 for ; Thu, 27 Jul 2017 14:34:03 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B9AAD16ABBE; Thu, 27 Jul 2017 12:34:03 +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 F2A8816ABC0 for ; Thu, 27 Jul 2017 14:34:02 +0200 (CEST) Received: (qmail 85082 invoked by uid 500); 27 Jul 2017 12:34:02 -0000 Mailing-List: contact commits-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list commits@ignite.apache.org Received: (qmail 84547 invoked by uid 99); 27 Jul 2017 12:34:00 -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; Thu, 27 Jul 2017 12:34:00 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 8FBD3F32F3; Thu, 27 Jul 2017 12:33:58 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: agoncharuk@apache.org To: commits@ignite.apache.org Date: Thu, 27 Jul 2017 12:34:20 -0000 Message-Id: <588198b191264c1ca29c9ee87230948a@git.apache.org> In-Reply-To: <9b68fabe074d48b4890d40c84af88d18@git.apache.org> References: <9b68fabe074d48b4890d40c84af88d18@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [23/40] ignite git commit: IGNITE-5781 Visor throws ClassCastException if cache store implementation is other than CacheJdbcPojoStore Signed-off-by: Konstantin Boudnik (cherry picked from commit 02e2507) archived-at: Thu, 27 Jul 2017 12:34:03 -0000 IGNITE-5781 Visor throws ClassCastException if cache store implementation is other than CacheJdbcPojoStore Signed-off-by: Konstantin Boudnik (cherry picked from commit 02e2507) Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/85f17027 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/85f17027 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/85f17027 Branch: refs/heads/ignite-5757 Commit: 85f17027d0ca7cfa6dfaa3711ad8b4a7a6eb1e79 Parents: 243913e Author: Aleksandr_Meterko Authored: Wed Jul 19 19:55:15 2017 +0700 Committer: vsisko Committed: Wed Jul 26 15:31:54 2017 +0700 ---------------------------------------------------------------------- .../org/apache/ignite/internal/visor/cache/VisorCacheJdbcType.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/85f17027/modules/core/src/main/java/org/apache/ignite/internal/visor/cache/VisorCacheJdbcType.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/cache/VisorCacheJdbcType.java b/modules/core/src/main/java/org/apache/ignite/internal/visor/cache/VisorCacheJdbcType.java old mode 100644 new mode 100755 index e50402c..a03096f --- a/modules/core/src/main/java/org/apache/ignite/internal/visor/cache/VisorCacheJdbcType.java +++ b/modules/core/src/main/java/org/apache/ignite/internal/visor/cache/VisorCacheJdbcType.java @@ -64,7 +64,7 @@ public class VisorCacheJdbcType extends VisorDataTransferObject { public static List list(Factory factory) { List res = new ArrayList<>(); - if (factory != null || factory instanceof CacheJdbcPojoStoreFactory) { + if (factory instanceof CacheJdbcPojoStoreFactory) { CacheJdbcPojoStoreFactory jdbcFactory = (CacheJdbcPojoStoreFactory) factory; JdbcType[] jdbcTypes = jdbcFactory.getTypes();