Comment 13 for bug 460177

Revision history for this message
Stephane Godbillon (sgo) wrote :

I agree, we can make 2 methods, however in this particular case, I think using Object is a good choice to avoid a huge number of signatures. The previous implementation checks if the parameter is an InternetAddress or calls toString() on it (assuming it is not null) : after all, for this use case, this is the expected behavior, and the API is still clear.