<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:08:45 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-148] auto generated code by YANGTOOLS could be more efficient (binding spec. v2)</title>
                <link>https://jira.opendaylight.org/browse/MDSAL-148</link>
                <project id="10137" key="MDSAL">mdsal</project>
                    <description>&lt;p&gt;+++ This bug was initially created as a clone of &lt;a href=&quot;https://jira.opendaylight.org/browse/MDSAL-84&quot; title=&quot;Binding spec v1: auto generated code by YANGTOOLS could be more efficient.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;MDSAL-84&quot;&gt;&lt;del&gt;MDSAL-84&lt;/del&gt;&lt;/a&gt; +++&lt;/p&gt;

&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="26970">MDSAL-148</key>
            <summary>auto generated code by YANGTOOLS could be more efficient (binding spec. v2)</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="10001">Won&apos;t Do</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="martin.ciglan">Martin Ciglan</reporter>
                        <labels>
                    </labels>
                <created>Tue, 5 Apr 2016 13:29:06 +0000</created>
                <updated>Fri, 9 Mar 2018 18:00:14 +0000</updated>
                            <resolved>Thu, 18 May 2017 14:05:24 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="54282" author="martin.ciglan" created="Tue, 5 Apr 2016 13:30:48 +0000"  >&lt;p&gt;consider using Objects.toStringHelper&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                                                <inwardlinks description="is blocked by">
                                        <issuelink>
            <issuekey id="27059">MDSAL-237</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <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>5669</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=5669]]></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="10321"><![CDATA[Carbon]]></customfieldvalue>

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

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