Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(183)

Issue 2733363003: Introduce objectEquals for null-safe equality check (Closed)

Created:
3 years, 9 months ago by ortuno
Modified:
3 years, 9 months ago
Reviewers:
nyquist
CC:
agrieve+watch_chromium.org, chromium-reviews, vmpstr+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce objectEquals for null-safe equality check There exists a similar API in Objects[1] but it's only available in API 19+. Will be used in http://crrev.com/2704263004 [1] https://developer.android.com/reference/java/util/Objects.html Review-Url: https://codereview.chromium.org/2733363003 Cr-Commit-Position: refs/heads/master@{#455900} Committed: https://chromium.googlesource.com/chromium/src/+/d41491179d6dd91eeca40fc743889eafe98a7050

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add @see annotation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -0 lines) Patch
M base/android/java/src/org/chromium/base/ApiCompatibilityUtils.java View 1 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (11 generated)
ortuno
nyquist: PTAL.
3 years, 9 months ago (2017-03-08 03:55:01 UTC) #2
nyquist
https://codereview.chromium.org/2733363003/diff/1/base/android/java/src/org/chromium/base/ApiCompatibilityUtils.java File base/android/java/src/org/chromium/base/ApiCompatibilityUtils.java (right): https://codereview.chromium.org/2733363003/diff/1/base/android/java/src/org/chromium/base/ApiCompatibilityUtils.java#newcode646 base/android/java/src/org/chromium/base/ApiCompatibilityUtils.java:646: public static boolean objectEquals(Object a, Object b) { Can ...
3 years, 9 months ago (2017-03-08 18:09:51 UTC) #7
nyquist
TBH, I don't think we'd want this in base. I suggest you put this in ...
3 years, 9 months ago (2017-03-08 18:27:08 UTC) #8
Ted C
On 2017/03/08 18:27:08, nyquist wrote: > TBH, I don't think we'd want this in base. ...
3 years, 9 months ago (2017-03-08 18:38:02 UTC) #9
nyquist
Yeah, I think moving them out to smaller things would be helpful. But that's not ...
3 years, 9 months ago (2017-03-09 04:49:14 UTC) #10
ortuno
Thanks!
3 years, 9 months ago (2017-03-09 04:50:23 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2733363003/1
3 years, 9 months ago (2017-03-09 04:50:34 UTC) #13
ortuno
Forgot to address the comment. Canceling cq.
3 years, 9 months ago (2017-03-09 04:50:52 UTC) #15
ortuno
Thanks! Happy to send a follow up patch if someone could advice on the name ...
3 years, 9 months ago (2017-03-09 22:45:08 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2733363003/20001
3 years, 9 months ago (2017-03-09 22:45:33 UTC) #19
commit-bot: I haz the power
3 years, 9 months ago (2017-03-09 23:43:42 UTC) #22
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/d41491179d6dd91eeca40fc74388...

Powered by Google App Engine
This is Rietveld 408576698