<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:52:37 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-222] Builder should not use singleton map</title>
                <link>https://jira.opendaylight.org/browse/YANGTOOLS-222</link>
                <project id="10188" key="YANGTOOLS">yangtools</project>
                    <description>&lt;p&gt;When creating a builder for a given object, i.e. &quot;NodeConnectorBuilder ncBuilder = new NodeConnectorBuilder(nc)&quot;&lt;br/&gt;
The ncBuilder will initialize its &quot;augmentation&quot; HashMap variable to be a SingletonMap when nc only has 1 augmentation.&lt;br/&gt;
However, I want to add augmentations onto ncBuilder using the &quot;addAugmentation&quot; method.  Using the &quot;addAugmentation&quot; method will throw an UnsupportedOperationException because SingletonMap does not override AbstractMap&apos;s &quot;put&quot; method.&lt;/p&gt;

&lt;p&gt;Here is an example of the NodeConnectorBuilder&lt;br/&gt;
        if (base instanceof NodeConnectorImpl) {&lt;br/&gt;
            NodeConnectorImpl _impl = (NodeConnectorImpl) base;&lt;br/&gt;
            switch (_impl.augmentation.size()) &lt;/p&gt;
{
            case 0:
                this.augmentation = Collections.emptyMap();
                break;
            case 1:
                final Map.Entry&amp;lt;java.lang.Class&amp;lt;? extends Augmentation&amp;lt;org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.node.NodeConnector&amp;gt;&amp;gt;, Augmentation&amp;lt;org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.node.NodeConnector&amp;gt;&amp;gt; e = _impl.augmentation.entrySet().iterator().next();
                this.augmentation = Collections.&amp;lt;java.lang.Class&amp;lt;? extends Augmentation&amp;lt;org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.node.NodeConnector&amp;gt;&amp;gt;, Augmentation&amp;lt;org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.node.NodeConnector&amp;gt;&amp;gt;singletonMap(e.getKey(), e.getValue());  //this is where the problem lies
                break;
            default :
                this.augmentation = new HashMap&amp;lt;&amp;gt;(_impl.augmentation);
            }
&lt;p&gt;        }&lt;/p&gt;


&lt;p&gt;The relevant file is BuilderTemplate.xtend&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: Mac OS&lt;br/&gt;
Platform: PC&lt;/p&gt;</environment>
        <key id="22642">YANGTOOLS-222</key>
            <summary>Builder should not use singleton map</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="mvitez@cisco.com">Martin Vitez</assignee>
                                    <reporter username="railor33@gmail.com">Alexander Fan</reporter>
                        <labels>
                    </labels>
                <created>Wed, 23 Jul 2014 01:50:39 +0000</created>
                <updated>Sun, 10 Apr 2022 18:35:11 +0000</updated>
                            <resolved>Fri, 25 Jul 2014 07:58:54 +0000</resolved>
                                                                        <due>Fri, 1 Aug 2014 00:00:00 +0000</due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="42877" author="mvitez@cisco.com" created="Thu, 24 Jul 2014 09:44:51 +0000"  >&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/9272/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/9272/&lt;/a&gt;&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>1407</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=1407]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10204" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>ODL SR Target Milestone</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10370"><![CDATA[Helium]]></customfieldvalue>

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

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