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/acc86594 Tree: http://git-wip-us.apache.org/repos/asf/geode/tree/acc86594 Diff: http://git-wip-us.apache.org/repos/asf/geode/diff/acc86594 Branch: refs/heads/feature/GEODE-2632-10 Commit: acc8659409f52a00ea6b8e897ad08b18560c9e5c Parents: 3cfad66 Author: Kirk Lund <[email protected]> Authored: Wed May 3 15:08:23 2017 -0700 Committer: Kirk Lund <[email protected]> Committed: Wed May 3 17:06:25 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/acc86594/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
