geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kl...@apache.org
Subject geode git commit: Revert session modules changes part 2
Date Wed, 03 May 2017 22:08:41 GMT
Repository: geode
Updated Branches:
  refs/heads/feature/GEODE-2632-10 41367f634 -> 88d3dd11f


Revert session modules changes part 2


Project: http://git-wip-us.apache.org/repos/asf/geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/geode/commit/88d3dd11
Tree: http://git-wip-us.apache.org/repos/asf/geode/tree/88d3dd11
Diff: http://git-wip-us.apache.org/repos/asf/geode/diff/88d3dd11

Branch: refs/heads/feature/GEODE-2632-10
Commit: 88d3dd11ff5b284b3222b33a6f912f1c03ab7159
Parents: 41367f6
Author: Kirk Lund <klund@apache.org>
Authored: Wed May 3 15:08:23 2017 -0700
Committer: Kirk Lund <klund@apache.org>
Committed: Wed May 3 15:08:23 2017 -0700

----------------------------------------------------------------------
 .../session/internal/common/PeerToPeerSessionCache.java       | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/geode/blob/88d3dd11/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/common/PeerToPeerSessionCache.java
----------------------------------------------------------------------
diff --git a/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/common/PeerToPeerSessionCache.java
b/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/common/PeerToPeerSessionCache.java
index 10c13ae..ff47e78 100644
--- a/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/common/PeerToPeerSessionCache.java
+++ b/extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/common/PeerToPeerSessionCache.java
@@ -57,7 +57,7 @@ public class PeerToPeerSessionCache extends AbstractSessionCache {
     super();
     this.cache = cache;
 
-    /*
+    /**
      * Set some default properties for this cache if they haven't already been set
      */
     this.properties.put(CacheProperty.REGION_ATTRIBUTES_ID, DEFAULT_REGION_ATTRIBUTES_ID);
@@ -76,12 +76,11 @@ public class PeerToPeerSessionCache extends AbstractSessionCache {
     // Create or retrieve the region
     createOrRetrieveRegion();
 
-    /*
+    /**
      * If local cache is enabled, create the local region fronting the session region and
set it as
      * the operating region; otherwise, use the session region directly as the operating
region.
      */
-    boolean enableLocalCache =
-        Boolean.valueOf((String) properties.get(CacheProperty.ENABLE_LOCAL_CACHE));
+    boolean enableLocalCache = (Boolean) properties.get(CacheProperty.ENABLE_LOCAL_CACHE);
     operatingRegion = enableLocalCache ? createOrRetrieveLocalRegion() : this.sessionRegion;
 
     // Create or retrieve the statistics


Mime
View raw message