<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:14:01 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>[NETCONF-42] default case</title>
                <link>https://jira.opendaylight.org/browse/NETCONF-42</link>
                <project id="10142" key="NETCONF">netconf</project>
                    <description>&lt;p&gt;its a good practice to have a default case for all switch statements&lt;/p&gt;


&lt;p&gt;public class NetconfChunkAggregator extends ByteToMessageDecoder &lt;/p&gt;

&lt;p&gt;in the function --&amp;gt;   protected void decode&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="21055">NETCONF-42</key>
            <summary>default case</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="10001">Won&apos;t Do</resolution>
                                        <assignee username="shivani.pathak@tcs.com">Shivani Pathak</assignee>
                                    <reporter username="shashidharc@huawei.com">Shashidhar Shekar</reporter>
                        <labels>
                    </labels>
                <created>Mon, 29 Jun 2015 12:36:07 +0000</created>
                <updated>Fri, 15 Mar 2019 22:22:12 +0000</updated>
                            <resolved>Tue, 15 Dec 2015 09:25:57 +0000</resolved>
                                                                    <component>netconf</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="38849" author="rovarga" created="Fri, 13 Nov 2015 12:57:49 +0000"  >&lt;p&gt;Move to NETCONFI project.&lt;/p&gt;</comment>
                            <comment id="38850" author="shivani.pathak@tcs.com" created="Tue, 15 Dec 2015 06:06:22 +0000"  >&lt;p&gt;In NetconfChunkAggregator switch statement expression is an Enumerated type. Value for the same is fetched as below:&lt;/p&gt;

&lt;p&gt;private State state=State.HEADER_ONE; &lt;/p&gt;

&lt;p&gt;Always the first case with label HEADER_ONE will get executed &lt;/p&gt;

&lt;p&gt;case HEADER_ONE:&lt;/p&gt;
            {
                final byte b = in.readByte();
                checkNewLine(b, &quot;Malformed chunk header encountered (byte 0)&quot;);

                state = State.HEADER_TWO;

                initChunk();
                break;
            }

&lt;p&gt;Hence default case is not required as per my analysis.&lt;/p&gt;

&lt;p&gt;Please suggest if there is a necessity to do so.&lt;/p&gt;</comment>
                            <comment id="38851" author="tcere" created="Tue, 15 Dec 2015 09:25:57 +0000"  >&lt;p&gt;Looked it over and you are correct, no need for a default case here.&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>3886</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=3886]]></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="10349"><![CDATA[Unspecified]]></customfieldvalue>

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

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