Committed by
Gerrit Code Review
Refactor: Rename a method
Change-Id: I43f94df138b63c6312ef317f8dd18063dc1938f6
Showing
1 changed file
with
2 additions
and
2 deletions
| ... | @@ -109,7 +109,7 @@ public class ConsistentResourceStore implements ResourceStore { | ... | @@ -109,7 +109,7 @@ public class ConsistentResourceStore implements ResourceStore { |
| 109 | return abortTransaction(tx); | 109 | return abortTransaction(tx); |
| 110 | } | 110 | } |
| 111 | 111 | ||
| 112 | - if (!appendValue(childTxMap, resource, children)) { | 112 | + if (!appendValues(childTxMap, resource, children)) { |
| 113 | return abortTransaction(tx); | 113 | return abortTransaction(tx); |
| 114 | } | 114 | } |
| 115 | 115 | ||
| ... | @@ -276,7 +276,7 @@ public class ConsistentResourceStore implements ResourceStore { | ... | @@ -276,7 +276,7 @@ public class ConsistentResourceStore implements ResourceStore { |
| 276 | * @param <V> type of the element of the list | 276 | * @param <V> type of the element of the list |
| 277 | * @return true if the operation succeeds, false otherwise. | 277 | * @return true if the operation succeeds, false otherwise. |
| 278 | */ | 278 | */ |
| 279 | - private <K, V> boolean appendValue(TransactionalMap<K, List<V>> map, K key, List<V> values) { | 279 | + private <K, V> boolean appendValues(TransactionalMap<K, List<V>> map, K key, List<V> values) { |
| 280 | List<V> oldValues = map.get(key); | 280 | List<V> oldValues = map.get(key); |
| 281 | List<V> newValues; | 281 | List<V> newValues; |
| 282 | if (oldValues == null) { | 282 | if (oldValues == null) { | ... | ... |
-
Please register or login to post a comment