#1 Add host to domain transformation method

已合併
jonathan 4 年之前 將 1 次代碼提交從 kris/host_to_domain合併至 master

@jonathan please review

@jonathan please review
jonathankris 4 年之前指派
jonathan requested changes 4 年之前
jonathan left a comment

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 closed this pull request 4 年之前
jonathan 刪除分支 kris/host_to_domain 4 年之前

Reviewers

jonathan requested changes 4 年之前
The pull request has been merged as 45579ec840.
登入 才能加入這對話。
No reviewers
未選擇標籤
未選擇里程碑
No Assignees
2 參與者
訊息
Due Date

No due date set.

Dependencies

This pull request currently doesn't have any dependencies.

Loading…
尚未有任何內容