tags:

views:

81

answers:

2

ObjectUtils.equal(x,y) x if is null can work?

+2  A: 

See the JavaDoc of the method. It says null works.

NawaMan
Unless it is another `ObjectUtils`.
Tom Hawtin - tackline
+1  A: 

** Yes! **

Mitch Blevins
or, "No".Depends on the outcome of your test?
Mitch Blevins
Ah, jeez Mitch, here I was impressed by your confidence, and you go and qualify it...
Michael Petrotta
I was testing your confidence in your first impression. You were easily dissuaded. (is there a badge for that?)
Mitch Blevins