InternetDomainName toString() method unexpected behavior
.toString() method returns "InternetDomainName{name=domainORtldORwhatever}" Should not simply return the domainORtldORwhatever?
Example code:
InternetDomainName owner = InternetDomainName.from("www.elmundo.es").topPrivateDomain(); System.out.println(owner.toString());
Print:
InternetDomainName{name=elmundo.es}
What I expect is:
elmundo.es
Is it an error? is it an expected behavior?
I'm using:
Thanks!
toString() has worked as you describe since 15.0. Do you have an older version of Guava on your classpath alongside 18.0?
(sorry, "worked as you describe" meaning "returns the name")
Yeah, deleted my comment when I realized Storm 0.9.2 was overriding with Guava 13. Pardon me.
I have the same problem , storm is overriding guava with a older version. Is there any solution to this problem?
@chethan Is this Apache Storm, or another Storm? :)