#1 Add host to domain transformation method

Merge aplicado
jonathan aplicou merge dos 1 commits de kris/host_to_domain em master 4 anos atrás
kris comentou 4 anos atrás

@jonathan please review

@jonathan please review
jonathan foi atribuído por kris 4 anos atrás
jonathan alterações solicitadas 4 anos atrás
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 comentou 4 anos atrás

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 comentou 4 anos atrás

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 comentou 4 anos atrás

Sorry, I missed that. Thanks.

Sorry, I missed that. Thanks.
jonathan closed this pull request 4 anos atrás
jonathan excluiu branch kris/host_to_domain 4 anos atrás

Revisores

jonathan alterações solicitadas 4 anos atrás
O pull request teve merge aplicado como 45579ec840.
Acesse para participar desta conversação.
No reviewers
Sem etiqueta
Sem marco
Sem responsável
2 participante(s)
Notificações
Data limite

Data limite não informada.

Dependências

Atualmente este pull request não tem dependências.

Carregando…
Ainda não há conteúdo.