#1 Add host to domain transformation method

已合并
jonathan 4 年前 将 1 次代码提交从 kris/host_to_domain合并至 master
kris 评论于 4 年前

@jonathan please review

@jonathan please review
jonathan4 年前kris 指派
jonathan 请求变更 4 年前
jonathan 留下了一条评论

Question about removal of getHost call to validate URI.

@@ -53,4 +61,2 @@
* @return the "registered" domain, which includes the TLD and one level up.
*/
public static String getRegisteredDomain(String uri) {
final String host = getHost(uri);
jonathan 评论于 4 年前

The getHost call was used to ensure that the uri argument is a valid URI. Can we leave it in? If that breaks something, maybe use a different method?

The `getHost` call was used to ensure that the `uri` argument is a valid URI. Can we leave it in? If that breaks something, maybe use a different method?
kris 评论于 4 年前

Nothing is removed. getRegisteredDomain still works as before - redefined in line 56 above, and does call getHost.

hostToDomain is a brand new method with the second part of the previous method required and used currently only in some test.

Nothing is removed. `getRegisteredDomain` still works as before - redefined in line 56 above, and does call `getHost`. `hostToDomain` is a brand new method with the second part of the previous method required and used currently only in some test.
jonathan 评论于 4 年前

Sorry, I missed that. Thanks.

Sorry, I missed that. Thanks.
jonathan 关闭此合并请求 4 年前
jonathan4 年前 删除了分支 kris/host_to_domain

评审人

jonathan 请求变更 4 年前
该合并请求已作为 45579ec840 被合并。
登录 并参与到对话中。
无审核者
未选择标签
未选择里程碑
未指派成员
2 名参与者
通知
到期时间

未设置到期时间。

依赖工单

此合并请求当前没有任何依赖。

正在加载...
这个人很懒,什么都没留下。