[Android] Assorted DirectoryAdapter and fragment fixes

Jean-Baptiste Kempf jb at videolan.org
Mon May 20 19:59:10 CEST 2013


On 20 May, Edward Wang wrote :
> -                if(n.name == _n) return true;
> +                if(n.name.equals(_n)) return true;

Genious question:

Why use that syntax? Doesn't this new syntax requires name to be not NULL ?
Ain't that a bit more dangerous than the previous syntax?

Moreover, isn't that slower?

Best regards,

-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device


More information about the Android mailing list