commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@gmail.com>
Subject [lang3] StringUtils.equals*
Date Thu, 10 Jun 2010 21:17:56 GMT
Should(n't) these methods call toString() before comparing  
CharSequence arguments of different RT types since CharSequence makes  
no claims regarding equals methods?  ObjectUtils.equals() can  
call .equals(), but IMHO the principle of least surprise would  
dictate that StringUtils ensure that the same sequences of characters  
would be considered equal.

-Matt

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message