<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:23:03 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>[NETVIRT-1028] Fix unrelated types for equals in HwvtepPhysicalSwitchListener</title>
                <link>https://jira.opendaylight.org/browse/NETVIRT-1028</link>
                <project id="10144" key="NETVIRT">netvirt</project>
                    <description>&lt;p&gt;Findbugs reports a &quot;Call to equals() comparing different types&quot; violation in HwvtepPhysicalSwitchListener for:&lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;  Objects.equals(l2GwDevice.getHwvtepNodeId(), globalIid)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;because the first parameter is a String and the second an InstanceIdentifier. The call will always return false. This occurs in 2 places. The calls were commented out by &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/65520/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/65520/&lt;/a&gt; to avoid the FB violation.&lt;/p&gt;

&lt;p&gt;Another part of the class does this:&lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;  Objects.equals(l2GatewayDevice.getHwvtepNodeId(),
                            globalIid.firstKeyOf(Node.class).getNodeId().getValue())
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;and it seems the 2 violators should do the same. This should be analyzed by someone who knows the code to confirm this would be correct and wouldn&apos;t break anything or if the equals check is even necessary (you&apos;d think something else would be broken by now).&lt;/p&gt;</description>
                <environment></environment>
        <key id="28885">NETVIRT-1028</key>
            <summary>Fix unrelated types for equals in HwvtepPhysicalSwitchListener</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.opendaylight.org/images/icons/priorities/major.svg">Medium</priority>
                        <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="Karthikeyan">Karthikeyan Krishnan</assignee>
                                    <reporter username="tpantelis">Tom Pantelis</reporter>
                        <labels>
                    </labels>
                <created>Thu, 23 Nov 2017 21:12:04 +0000</created>
                <updated>Wed, 29 Jan 2020 13:30:17 +0000</updated>
                            <resolved>Wed, 29 Jan 2020 13:30:04 +0000</resolved>
                                    <version>Oxygen</version>
                    <version>Fluorine</version>
                                    <fixVersion>Magnesium</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="67709" author="xcheara" created="Wed, 29 Jan 2020 13:30:04 +0000"  >&lt;p&gt;Don&apos;t see this findbug issue in master(magnesium). And the Comparision done with Objects.Equals() as valid now&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_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i038ev:</customfieldvalue>

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