<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:52:41 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-250] BigInteger being used in range checks when a simple type would be sufficient</title>
                <link>https://jira.opendaylight.org/browse/YANGTOOLS-250</link>
                <project id="10188" key="YANGTOOLS">yangtools</project>
                    <description>&lt;p&gt;For example:&lt;/p&gt;

&lt;p&gt;model/l2-types/target/generated-sources/sal/org/opendaylight/yang/gen/v1/urn/opendaylight/l2/types/rev130827/VlanId.java&lt;/p&gt;

&lt;p&gt;public class VlanId&lt;br/&gt;
 implements Serializable {&lt;/p&gt;

&lt;p&gt;    private static final List&amp;lt;Range&amp;lt;BigInteger&amp;gt;&amp;gt; _range;&lt;/p&gt;

&lt;p&gt;    public VlanId(java.lang.Integer _value) {&lt;br/&gt;
        if (_value != null) {&lt;br/&gt;
            BigInteger _constraint = BigInteger.valueOf(_value);&lt;br/&gt;
            boolean isValidRange = false;&lt;br/&gt;
            for (Range&amp;lt;BigInteger&amp;gt; r : range()) {&lt;br/&gt;
                if (r.contains(_constraint)) &lt;/p&gt;
{
                    isValidRange = true;
                }
&lt;p&gt;            }&lt;/p&gt;

&lt;p&gt;This is clearly inefficient: we know what the allowed range/type is, so any ranges have to fit into that too &amp;#8211; which should allow us to skip instantiation on _constraint and more importantly, use more efficient range checks.&lt;/p&gt;

&lt;p&gt;This is a post-Helium item, because the type of _range is leaked via:&lt;/p&gt;

&lt;p&gt;    public static List&amp;lt;Range&amp;lt;BigInteger&amp;gt;&amp;gt; range() &lt;/p&gt;
{
        return _range;
    }

&lt;p&gt;so this constitutes a change in the binding specification.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="22670">YANGTOOLS-250</key>
            <summary>BigInteger being used in range checks when a simple type would be sufficient</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="rovarga">Robert Varga</assignee>
                                    <reporter username="rovarga">Robert Varga</reporter>
                        <labels>
                    </labels>
                <created>Tue, 5 Aug 2014 11:18:39 +0000</created>
                <updated>Sun, 10 Apr 2022 18:35:13 +0000</updated>
                            <resolved>Fri, 10 Mar 2017 12:07:14 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="42929" author="rovarga" created="Wed, 18 Mar 2015 12:52:31 +0000"  >&lt;p&gt;For Lithium we can deprecate the public range method.&lt;/p&gt;</comment>
                            <comment id="42930" author="rovarga" created="Wed, 18 Mar 2015 17:22:44 +0000"  >&lt;p&gt;Deprecation of public methods (includes length(), which is essentially the same thing): &lt;a href=&quot;https://git.opendaylight.org/gerrit/16780&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/16780&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="42931" author="rovarga" created="Wed, 18 Mar 2015 17:24:11 +0000"  >&lt;p&gt;Reschedule for Beryllium for follow-up.&lt;/p&gt;</comment>
                            <comment id="42932" author="rovarga" created="Sun, 14 Jun 2015 10:25:24 +0000"  >&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/22008&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/22008&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                            <outwardlinks description="blocks">
                                        <issuelink>
            <issuekey id="26862">MDSAL-40</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </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>1485</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=1485]]></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="10381"><![CDATA[Beryllium-M2]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10202" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Priority</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10312"><![CDATA[High]]></customfieldvalue>

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

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