Make existCache more efficient in ClusterManager 13/2213/2
authorAlissa Bonas <abonas@redhat.com>
Mon, 28 Oct 2013 10:44:28 +0000 (12:44 +0200)
committerGerrit Code Review <gerrit@opendaylight.org>
Thu, 31 Oct 2013 14:32:20 +0000 (14:32 +0000)
commitfaba9da80e675b3f093bfd569f496317d92ec893
treee4a5ba5aca21e832a662611196800b9eafd0b07e
parent8916ab2b0c56bc6d5a73888ccb76ac036ccd81a0
Make existCache more efficient in ClusterManager

Allocate cacheName only when it's needed, when manager
is null the concatenation of strings is redundant.

Change-Id: I031e923d2d725b3e295ed7be53ceba19a6892e96
Signed-off-by: Alissa Bonas <abonas@redhat.com>
opendaylight/clustering/services_implementation/src/main/java/org/opendaylight/controller/clustering/services_implementation/internal/ClusterManager.java