Improve ShardBackendInfo.toString() 17/59617/2
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 28 Jun 2017 08:24:17 +0000 (10:24 +0200)
committerTom Pantelis <tompantelis@gmail.com>
Wed, 28 Jun 2017 16:04:26 +0000 (16:04 +0000)
Slight update to eliminate a space from the property name and
an explicit present/absent string.

Change-Id: I9cb3a57049737c8ea25d22263140ff9974e23502
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 741013a2d48a4d08f83082c4e3cff79f59d17dde)

opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/databroker/actors/dds/ShardBackendInfo.java

index 86acd1b..d13099c 100644 (file)
@@ -58,6 +58,6 @@ final class ShardBackendInfo extends BackendInfo {
     @Override
     protected ToStringHelper addToStringAttributes(final ToStringHelper toStringHelper) {
         return super.addToStringAttributes(toStringHelper).add("cookie", cookie).add("shard", shardName)
-                .add("dataTree present", getDataTree().isPresent());
+                .add("dataTree", getDataTree().isPresent() ? "present" : "absent");
     }
 }

©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.