- changed status to resolved
Usage of Sets of URLs
Issue #80
resolved
In ClientMetadata.setRedirectionURIs(Set<URL>) a set of URLs is used as the input argument.
Implementations of Set use equals() when adding new objects. When adding java.net.URL objects, this can result in blocking internet connections. See also: http://michaelscharf.blogspot.ch/2006/11/javaneturlequals-and-hashcode-make.html
Unfortunately, by expecting a set of URLs, one is forced to build such sets of URLs. Could this be implemented differently? E.g., by accepting a Set of Strings instead of URLs and internally using Strings to represent redirection URIs?
Comments (1)
-
- Log in to comment
Thanks for reporting this.
Yesterday we switched to URI across the entire SDK as part of another issue, so this should also have been fixed.