<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:52:01 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>OpenDaylight JIRA</title>
    <link>https://jira.opendaylight.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>8.20.10</version>
        <build-number>820010</build-number>
        <build-date>22-06-2022</build-date>
    </build-info>


<item>
            <title>[YANGTOOLS-14] Built-in type should return null for getBaseType()</title>
                <link>https://jira.opendaylight.org/browse/YANGTOOLS-14</link>
                <project id="10188" key="YANGTOOLS">yangtools</project>
                    <description>&lt;p&gt;When calling getBaseType() on a built in type, it should return null.&lt;br/&gt;
Currently it seems to be returning itself.&lt;/p&gt;

&lt;p&gt;This would allow code like that below to work.&lt;/p&gt;

&lt;p&gt;    public static TypeDefinition getRootType(final TypeDefinition typeDef) {&lt;br/&gt;
        assert typeDef != null;&lt;/p&gt;

&lt;p&gt;        TypeDefinition t = typeDef;&lt;/p&gt;

&lt;p&gt;        while (t.getBaseType() != null) &lt;/p&gt;
{
            t = t.getBaseType();
        }&lt;br/&gt;
        return t;&lt;br/&gt;
    }&lt;br/&gt;
&lt;br/&gt;
currently I need to do :&lt;br/&gt;
&lt;br/&gt;
    public static TypeDefinition getRootType(final TypeDefinition typeDef) {&lt;br/&gt;
        assert typeDef != null;&lt;br/&gt;
&lt;br/&gt;
        TypeDefinition t = typeDef;&lt;br/&gt;
&lt;br/&gt;
        while ((t.getBaseType() != null) &amp;amp;&amp;amp; (!t.getQName().getLocalName().equals(t.getBaseType().getQName().getLocalName()))) {            t = t.getBaseType();        }
&lt;p&gt;        return t;&lt;br/&gt;
    }&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: Windows&lt;br/&gt;
Platform: PC&lt;/p&gt;</environment>
        <key id="22434">YANGTOOLS-14</key>
            <summary>Built-in type should return null for getBaseType()</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                                <status id="5" iconUrl="https://jira.opendaylight.org/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10000">Done</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="chrhartl@cisco.com">Christopher Hartley</reporter>
                        <labels>
                    </labels>
                <created>Thu, 12 Sep 2013 00:32:45 +0000</created>
                <updated>Sun, 10 Apr 2022 18:34:51 +0000</updated>
                            <resolved>Tue, 17 Sep 2013 09:39:50 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="42516" author="chrhartl@cisco.com" created="Thu, 12 Sep 2013 00:42:42 +0000"  >&lt;p&gt;The javadocs should be updated too. Something like :&lt;/p&gt;

&lt;p&gt;If this is a derived type, then it returns the type that it is derived from.&lt;br/&gt;
If this is a built in type, then it returns null.&lt;/p&gt;</comment>
                            <comment id="42517" author="mvitez@cisco.com" created="Tue, 17 Sep 2013 09:39:50 +0000"  >&lt;p&gt;Fixed in version 0.5.8-SNAPSHOT.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                            <customfield id="customfield_11400" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10208" key="com.atlassian.jira.plugin.system.customfieldtypes:textfield">
                        <customfieldname>External issue ID</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>70</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10201" key="com.atlassian.jira.plugin.system.customfieldtypes:url">
                        <customfieldname>External issue URL</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[https://bugs.opendaylight.org/show_bug.cgi?id=70]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i024lz:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>