Set weak keys for binding mountpoint cache 96/20496/2
authorMaros Marsalek <mmarsale@cisco.com>
Fri, 15 May 2015 09:28:19 +0000 (11:28 +0200)
committerGerrit Code Review <gerrit@opendaylight.org>
Tue, 19 May 2015 09:55:43 +0000 (09:55 +0000)
Change-Id: Ie3995beb7f2ffe51c882bde411048b2c59780184
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/impl/BindingDOMMountPointServiceAdapter.java

index 3a63fba..6bb40ed 100644 (file)
@@ -29,7 +29,7 @@ public class BindingDOMMountPointServiceAdapter implements MountPointService {
     private final BindingToNormalizedNodeCodec codec;
     private final DOMMountPointService mountService;
     private final LoadingCache<DOMMountPoint, BindingMountPointAdapter> bindingMountpoints = CacheBuilder.newBuilder()
-            .build(new CacheLoader<DOMMountPoint, BindingMountPointAdapter>() {
+            .weakKeys().build(new CacheLoader<DOMMountPoint, BindingMountPointAdapter>() {
 
                 @Override
                 public BindingMountPointAdapter load(DOMMountPoint key) throws Exception {

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.