commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <>
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.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message