From c0beef9294dd9f592f5e2c591c815742febd6db2 Mon Sep 17 00:00:00 2001 From: Julien BERNARD Date: Thu, 24 Feb 2022 16:07:00 -0500 Subject: [PATCH] Update information for IDN usage with InternetDomainName Update IDNA RFC references --- .../com/google/common/net/InternetDomainName.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/guava/src/com/google/common/net/InternetDomainName.java b/guava/src/com/google/common/net/InternetDomainName.java index d71a9d5c3c6c..b809112a0925 100644 --- a/guava/src/com/google/common/net/InternetDomainName.java +++ b/guava/src/com/google/common/net/InternetDomainName.java @@ -64,9 +64,11 @@ * be reflected in the result of {@link #equals(Object)}. * *

Internationalized domain - * names such as {@code 网络.cn} are supported, as are the equivalent such as {@code 网络.cn} are supported, as are the equivalent IDNA Punycode-encoded - * versions. + * versions. However, IDN are not validated against + * RFC 5890 ("Internationalized Domain Names for Applications"), therefore using another + * library for IDN validation may be required. * * @author Catherine Berry * @since 5.0 @@ -189,8 +191,8 @@ private int findSuffixOfType(Optional desiredType) { /** * Returns an instance of {@link InternetDomainName} after lenient validation. Specifically, - * validation against RFC 3490 - * ("Internationalizing Domain Names in Applications") is skipped, while validation against RFC 5890 + * ("Internationalized Domain Names for Applications") is skipped, while validation against RFC 1035 is relaxed in the following ways: * *