Replace string.Compare with string.Equals

Bug #1306227 reported by Sam Harwell
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-sdk-dotnet
Fix Released
Low
Wayne Foley

Bug Description

Expressions of the form

    string.Compare(...) == 0

Should be replaced with expressions of the form:

    string.Equals(...)

Likewise, expressions of the form

    string.Compare(...) != 0

Should be replaced with expressions of the form:

    !string.Equals(...)

Revision history for this message
Wayne Foley (wayne-foley) wrote :
Changed in openstack-sdk-dotnet:
importance: Undecided → Low
status: New → Triaged
assignee: nobody → Wayne Foley (wayne-foley)
Changed in openstack-sdk-dotnet:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-sdk-dotnet (master)

Fix proposed to branch: master
Review: https://review.openstack.org/86716

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-sdk-dotnet (master)

Reviewed: https://review.openstack.org/86716
Committed: https://git.openstack.org/cgit/stackforge/openstack-sdk-dotnet/commit/?id=969d30ff36ac735bae2e4527c0fba15064f891ec
Submitter: Jenkins
Branch: master

commit 969d30ff36ac735bae2e4527c0fba15064f891ec
Author: Wayne Foley <email address hidden>
Date: Thu Apr 10 14:17:06 2014 -0700

    Using String.Equals for string equality comparison

    Closes-Bug: 1306227
    Change-Id: Ifa40d5330813a9d67de9d65460356a21ed1a17e0

Changed in openstack-sdk-dotnet:
status: In Progress → Fix Committed
Changed in openstack-sdk-dotnet:
status: Fix Committed → Fix Released
Sam Harwell (sam-z)
Changed in openstack-sdk-dotnet:
status: Fix Released → Fix Committed
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.