Do not rely on ExtendedType when looking for the base type 20/29820/2
authorRobert Varga <robert.varga@pantheon.sk>
Tue, 17 Nov 2015 16:31:34 +0000 (17:31 +0100)
committerGerrit Code Review <gerrit@opendaylight.org>
Wed, 18 Nov 2015 08:11:40 +0000 (08:11 +0000)
commita0140cbc277edd4ca10d9c7e862af5ea2901e3cd
tree73c7db42dd97a458f7c3cf780666223e55248604
parentc91cd85aadc9859a9c50d63487834d7a4ee14a0c
Do not rely on ExtendedType when looking for the base type

A base type can be recognized as having its base type null, use that
indicator instead of specific implementation class. Also change the
implementation to use a simple loop instead of recursion.

Change-Id: Iff3e78c618bcbb7a33ae7335ea3bafe7cdf203a6
Signed-off-by: Robert Varga <robert.varga@pantheon.sk>
binding/mdsal-binding-generator-impl/src/main/java/org/opendaylight/yangtools/sal/binding/yang/types/TypeProviderImpl.java