commit | d82dc5b31b90584ad1a3f4cecc4061da9bc537ba | [log] [tgz] |
---|---|---|
author | Sho SHIMIZU <sshimizu@us.fujitsu.com> | Fri May 13 13:50:29 2016 -0700 |
committer | Sho SHIMIZU <sshimizu@us.fujitsu.com> | Fri May 13 13:50:29 2016 -0700 |
tree | 2a37cc52ddf963f9a9fa9fb526af72bf06a0df86 | |
parent | 860bb539411ad556f74da023a8aac989556872d6 [diff] |
Tighten method's visibility Change-Id: Ib3e14af194044b80522697119da971665e8b8fd9
diff --git a/core/store/dist/src/main/java/org/onosproject/store/resource/impl/TransactionalContinuousResourceStore.java b/core/store/dist/src/main/java/org/onosproject/store/resource/impl/TransactionalContinuousResourceStore.java index 548d221..ea289d4 100644 --- a/core/store/dist/src/main/java/org/onosproject/store/resource/impl/TransactionalContinuousResourceStore.java +++ b/core/store/dist/src/main/java/org/onosproject/store/resource/impl/TransactionalContinuousResourceStore.java
@@ -128,7 +128,7 @@ return childMap.replace(key, oldValues, newValues); } - boolean isAllocated(ContinuousResourceId id) { + private boolean isAllocated(ContinuousResourceId id) { ContinuousResourceAllocation allocations = consumers.get(id); return allocations != null && !allocations.allocations().isEmpty(); }
diff --git a/core/store/dist/src/main/java/org/onosproject/store/resource/impl/TransactionalDiscreteResourceStore.java b/core/store/dist/src/main/java/org/onosproject/store/resource/impl/TransactionalDiscreteResourceStore.java index 796ea49..68194d9 100644 --- a/core/store/dist/src/main/java/org/onosproject/store/resource/impl/TransactionalDiscreteResourceStore.java +++ b/core/store/dist/src/main/java/org/onosproject/store/resource/impl/TransactionalDiscreteResourceStore.java
@@ -117,7 +117,7 @@ return childMap.replace(key, oldValues, newValues); } - boolean isAllocated(DiscreteResourceId id) { + private boolean isAllocated(DiscreteResourceId id) { return consumers.get(id) != null; }