#1 Add host to domain transformation method

Fusionnée
jonathan a fusionné 1 révision(s) à partir de kris/host_to_domain vers master il y a 4 ans
kris a commenté il y a 4 ans

@jonathan please review

@jonathan please review
jonathan s'est vu assigner cela par kris il y a 4 ans
jonathan a requis les changements il y a 4 ans
jonathan laisser un commentaire

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 a commenté il y a 4 ans

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 a commenté il y a 4 ans

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 a commenté il y a 4 ans

Sorry, I missed that. Thanks.

Sorry, I missed that. Thanks.
jonathan a fermé cette pull request il y a 4 ans
jonathan a supprimé la branche kris/host_to_domain il y a 4 ans

Relecteurs

jonathan a requis les changements il y a 4 ans
La demande de tirage a été fusionnée en 45579ec840.
Connectez-vous pour rejoindre cette conversation.
Pas de relecteur
Pas d'étiquette
Aucun jalon
Pas d'assignataires
2 participants
Notifications
Échéance

Aucune échéance n'a été définie.

Dépendances

La demande de fusion n'a actuellement pas de dépendance.

Chargement…
Il n'existe pas encore de contenu.