[jitsi-dev] [jitsi/libjitsi] Compare Long using equals and not == (#140)


#1

Two different Long objects A and B can have the same value
giving true for A.equals(B) but false for A == B

Found using FindBugs
http://findbugs.sourceforge.net/bugDescriptions.html#RC_REF_COMPARISON

Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
You can view, comment on, or merge this pull request online at:

  https://github.com/jitsi/libjitsi/pull/140

-- Commit Summary --

  * Compare Long using equals and not ==

-- File Changes --

    M src/org/jitsi/impl/neomedia/DominantSpeakerIdentification.java (5)

-- Patch Links --

https://github.com/jitsi/libjitsi/pull/140.patch
https://github.com/jitsi/libjitsi/pull/140.diff

···

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jitsi/libjitsi/pull/140


#2

Merged #140.

···

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jitsi/libjitsi/pull/140#event-630748999