You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by bo...@apache.org on 2018/08/07 19:34:31 UTC

[geode] branch feature/GEODE-5534 updated: GEODE-5534: Removed InternalRegion cast

This is an automated email from the ASF dual-hosted git repository.

boglesby pushed a commit to branch feature/GEODE-5534
in repository https://gitbox.apache.org/repos/asf/geode.git


The following commit(s) were added to refs/heads/feature/GEODE-5534 by this push:
     new 0c4d182  GEODE-5534: Removed InternalRegion cast
0c4d182 is described below

commit 0c4d1822b10fbb3413724733fd35448999efe7d9
Author: Barry Oglesby <bo...@pivotal.io>
AuthorDate: Tue Aug 7 12:33:28 2018 -0700

    GEODE-5534: Removed InternalRegion cast
---
 .../org/apache/geode/cache/query/internal/index/AbstractIndex.java     | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/geode-core/src/main/java/org/apache/geode/cache/query/internal/index/AbstractIndex.java b/geode-core/src/main/java/org/apache/geode/cache/query/internal/index/AbstractIndex.java
index 82e5d80..30b1401 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/query/internal/index/AbstractIndex.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/query/internal/index/AbstractIndex.java
@@ -66,7 +66,6 @@ import org.apache.geode.internal.Assert;
 import org.apache.geode.internal.cache.BucketRegion;
 import org.apache.geode.internal.cache.CachedDeserializable;
 import org.apache.geode.internal.cache.InternalCache;
-import org.apache.geode.internal.cache.InternalRegion;
 import org.apache.geode.internal.cache.LocalRegion;
 import org.apache.geode.internal.cache.PartitionedRegion;
 import org.apache.geode.internal.cache.RegionEntry;
@@ -2014,7 +2013,7 @@ public abstract class AbstractIndex implements IndexProtocol {
       return;
     }
     if (!this.isIndexedPdxKeys) {
-      if (key instanceof PdxString && ((InternalRegion) this.region).getCompressor() == null) {
+      if (key instanceof PdxString && this.region.getAttributes().getCompressor() == null) {
         this.isIndexedPdxKeys = true;
       }
     }