From: Robert Varga Date: Thu, 9 Apr 2015 09:16:49 +0000 (+0200) Subject: Fix DataTreeIdentifier losing type X-Git-Tag: release/beryllium~149^2~65 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=e0db8b34728f33153fce11e73a8e4da92121ae41;p=mdsal.git Fix DataTreeIdentifier losing type DataTreeIdentifier needs to retain the type of encapsulated InstanceIdentifier, otherwise the users cannot really use it (or have to suppress warnings/cast). Change-Id: Icc7214923531f9ffeafe55b12a8ad6813d431573 Signed-off-by: Robert Varga --- diff --git a/opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/md/sal/binding/api/DataTreeIdentifier.java b/opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/md/sal/binding/api/DataTreeIdentifier.java index c1c23d5e6f..b86d31b790 100644 --- a/opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/md/sal/binding/api/DataTreeIdentifier.java +++ b/opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/md/sal/binding/api/DataTreeIdentifier.java @@ -44,7 +44,7 @@ public final class DataTreeIdentifier implements Immutable * * @return Instance identifier corresponding to the root node. */ - public @Nonnull InstanceIdentifier getRootIdentifier() { + public @Nonnull InstanceIdentifier getRootIdentifier() { return rootIdentifier; }