<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:08:36 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>[MDSAL-84] Binding spec v1: auto generated code by YANGTOOLS could be more efficient.</title>
                <link>https://jira.opendaylight.org/browse/MDSAL-84</link>
                <project id="10137" key="MDSAL">mdsal</project>
                    <description>&lt;p&gt;I am reading the code under ALTO@ODL. And here are my two comments.&lt;/p&gt;

&lt;p&gt;1:File named &#8216;AltoProviderImplBuilder&#8217;under alto-provider/&#8230;&#8230;./modules/module/configuration :in function named &apos;toString&apos;,first is defined to judge a common should be inserted, i recommend writting as following&lt;/p&gt;

&lt;p&gt;    @Override&lt;br/&gt;
    public java.lang.String toString() {&lt;br/&gt;
        java.lang.StringBuilder builder = new java.lang.StringBuilder (&quot;AltoProviderImpl [&quot;);&lt;br/&gt;
        //boolean first = true;&lt;/p&gt;

&lt;p&gt;        if (_dataBroker != null) {&lt;br/&gt;
            //if (first) &lt;/p&gt;
{
            //    first = false;
            //} else {
            //    builder.append(&quot;, &quot;);
            //}&lt;br/&gt;
            builder.append(&quot;_dataBroker=&quot;);&lt;br/&gt;
            builder.append(_dataBroker); &lt;br/&gt;
            builder.append(&quot;, &quot;);//new added&lt;br/&gt;
&lt;br/&gt;
         }&lt;br/&gt;
        if (_rpcRegistry != null) {&lt;br/&gt;
            //if (first) {            //    first = false;            //}
&lt;p&gt; else &lt;/p&gt;
{
            //    builder.append(&quot;, &quot;);
            //}
&lt;p&gt;            builder.append(&quot;_rpcRegistry=&quot;);&lt;br/&gt;
            builder.append(_rpcRegistry); &lt;br/&gt;
            builder.append(&quot;, &quot;);//new added&lt;/p&gt;

&lt;p&gt;         }&lt;br/&gt;
        //if (first) &lt;/p&gt;
{
        //    first = false;
        //}
&lt;p&gt; else &lt;/p&gt;
{
        //    builder.append(&quot;, &quot;);
        //}
&lt;p&gt;        builder.append(&quot;augmentation=&quot;);&lt;br/&gt;
        builder.append(augmentation.values());&lt;br/&gt;
        return builder.append(&apos;]&apos;).toString();&lt;br/&gt;
    }&lt;br/&gt;
}&lt;br/&gt;
Fewer judgement, fewer jumpes and simplified, consistent code,Make sense. There are similar something in file named RpcRegistryBuilder.java under alto-provider/&#8230;&#8230;../modules/module/configuration/alto/provider/impl&lt;/p&gt;

&lt;p&gt;BTW,could anyone tell me who is responsible for the improvements&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;br/&gt;
URL: &lt;a href=&quot;https://ask.opendaylight.org/question/3617/there-should-be-some-improvement-about-the-auto-generated-codes-from-yangtools/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://ask.opendaylight.org/question/3617/there-should-be-some-improvement-about-the-auto-generated-codes-from-yangtools/&lt;/a&gt;&lt;/p&gt;</environment>
        <key id="26906">MDSAL-84</key>
            <summary>Binding spec v1: auto generated code by YANGTOOLS could be more efficient.</summary>
                <type id="10100" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10310&amp;avatarType=issuetype">Improvement</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="jakubtoth-0">Jakub Toth</assignee>
                                    <reporter username="chenguohai@huawei.com">chenguohai</reporter>
                        <labels>
                    </labels>
                <created>Thu, 7 May 2015 01:08:54 +0000</created>
                <updated>Fri, 9 Mar 2018 18:00:07 +0000</updated>
                            <resolved>Mon, 13 Feb 2017 10:02:03 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="54123" author="chenguohai@huawei.com" created="Thu, 7 May 2015 01:11:03 +0000"  >&lt;p&gt;this is not a major problem,but if we could make it more efficient.&lt;/p&gt;</comment>
                            <comment id="54124" author="tony.tkacik@gmail.com" created="Thu, 7 May 2015 07:16:04 +0000"  >&lt;p&gt;If you have some time you may want to improve, otherwise this will be picked-up by someone from yangtools / community.&lt;/p&gt;</comment>
                            <comment id="54125" author="chenguohai@huawei.com" created="Thu, 7 May 2015 07:21:30 +0000"  >&lt;p&gt;(In reply to Tony Tkacik from comment #2)&lt;br/&gt;
&amp;gt; If you have some time you may want to improve, otherwise this will be&lt;br/&gt;
&amp;gt; picked-up by someone from yangtools / community.&lt;/p&gt;

&lt;p&gt;let expert do it ,i do not have time.Thanks.&lt;br/&gt;
i am occupied by reviewing ALTO code.&lt;/p&gt;</comment>
                            <comment id="54126" author="rovarga" created="Tue, 8 Sep 2015 20:08:26 +0000"  >&lt;p&gt;This needs to be translated to the builder template. I believe the individual entries are emitted in a loop, where the first two include an additional condition &amp;#8211; hence the duplicate lines.&lt;/p&gt;

&lt;p&gt;In order to implement this, the generator needs to perform look-ahead, e.g. it needs to understand that a following entry will definitely be emitted. As things stand this is always true for augmentable types, but that can actually change in future &amp;#8211; augmentations are empty most of the time, so it may make sense to print them out only if they are non-empty.&lt;/p&gt;

&lt;p&gt;In any case this code has moved to the MD-SAL project, so this issue should live there, too.&lt;/p&gt;</comment>
                            <comment id="54127" author="jatoth@cisco.com" created="Mon, 2 Jan 2017 09:20:03 +0000"  >&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/49784/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/49784/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="54128" author="martin.ciglan" created="Wed, 1 Feb 2017 10:03:22 +0000"  >&lt;p&gt;boron:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/51290/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/51290/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="54129" author="rovarga" created="Thu, 2 Feb 2017 16:24:57 +0000"  >&lt;p&gt;Reopening, as it breaks format and the patches have been reverted.&lt;/p&gt;</comment>
                            <comment id="54130" author="jatoth@cisco.com" created="Fri, 3 Feb 2017 10:04:53 +0000"  >&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/51382/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/51382/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="54131" author="martin.ciglan" created="Thu, 9 Feb 2017 09:49:50 +0000"  >&lt;p&gt;boron backport:&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/51612&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/51612&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="54132" author="jatoth@cisco.com" created="Mon, 13 Feb 2017 10:02:03 +0000"  >&lt;p&gt;hotfix:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;master - &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/51674/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/51674/&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;boron  - &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/51773/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/51773/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&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>3147</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=3147]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10206" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Issue Type</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10305"><![CDATA[Improvement]]></customfieldvalue>

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

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

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