<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:10:49 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-742] Sanititize bits type mapping</title>
                <link>https://jira.opendaylight.org/browse/MDSAL-742</link>
                <project id="10137" key="MDSAL">mdsal</project>
                    <description>&lt;p&gt;We map a &quot;bits&quot; type to a dedicated TypeObject. We already have a ScalarTypeObject specialization which has getValue() method. &lt;br/&gt;
Examining the generated code for a , it creates this atrocity:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; MyBits getDefaultInstance(&lt;span class=&quot;code-keyword&quot;&gt;final&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;String&lt;/span&gt; defaultValue) {
        List&amp;lt;&lt;span class=&quot;code-object&quot;&gt;String&lt;/span&gt;&amp;gt; properties = Lists.newArrayList(&lt;span class=&quot;code-quote&quot;&gt;&quot;bitOne&quot;&lt;/span&gt;,
        &lt;span class=&quot;code-quote&quot;&gt;&quot;bitTwo&quot;&lt;/span&gt;,
        &lt;span class=&quot;code-quote&quot;&gt;&quot;bitZero&quot;&lt;/span&gt;
        );
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (!properties.contains(defaultValue)) {
            &lt;span class=&quot;code-keyword&quot;&gt;throw&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; IllegalArgumentException(&lt;span class=&quot;code-quote&quot;&gt;&quot;invalid &lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt; parameter&quot;&lt;/span&gt;);
        }
        &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; i = 0;
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; MyBits(
        properties.get(i++).equals(defaultValue) ? &lt;span class=&quot;code-object&quot;&gt;Boolean&lt;/span&gt;.TRUE : &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;,
        properties.get(i++).equals(defaultValue) ? &lt;span class=&quot;code-object&quot;&gt;Boolean&lt;/span&gt;.TRUE : &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;,
        properties.get(i++).equals(defaultValue) ? &lt;span class=&quot;code-object&quot;&gt;Boolean&lt;/span&gt;.TRUE : &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;
        );
    }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;There are so many things wrong in this mapping it&apos;s not even funny. Let&apos;s evolve this thing into something sane in terms of interface modeling, implementation design as well as interactions with runtime.&lt;/p&gt;</description>
                <environment></environment>
        <key id="35501">MDSAL-742</key>
            <summary>Sanititize bits type mapping</summary>
                <type id="10000" iconUrl="https://jira.opendaylight.org/images/icons/issuetypes/epic.svg">Epic</type>
                                            <priority id="3" iconUrl="https://jira.opendaylight.org/images/icons/priorities/major.svg">Medium</priority>
                        <status id="10003" iconUrl="https://jira.opendaylight.org/images/icons/status_generic.gif" description="">Confirmed</status>
                    <statusCategory id="2" key="new" colorName="blue-gray"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="rovarga">Robert Varga</reporter>
                        <labels>
                    </labels>
                <created>Mon, 11 Apr 2022 19:25:50 +0000</created>
                <updated>Tue, 9 Jan 2024 09:12:45 +0000</updated>
                                                            <fixVersion>14.0.0</fixVersion>
                                    <component>Binding codegen</component>
                    <component>Binding runtime</component>
                    <component>Binding Spec</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                        <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_10005" key="com.pyxis.greenhopper.jira:gh-epic-color">
                        <customfieldname>Epic Color</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>ghx-label-1</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10004" key="com.pyxis.greenhopper.jira:gh-epic-label">
                        <customfieldname>Epic Name</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Evolve bits mapping</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10003" key="com.pyxis.greenhopper.jira:gh-epic-status">
                        <customfieldname>Epic Status</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[To Do]]></customfieldvalue>

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

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