#1 Add host to domain transformation method

Unito
jonathan ha unito 1 commit da kris/host_to_domain a master 4 anni fa
kris 4 anni fa ha commentato

@jonathan please review

@jonathan please review
jonathan è stato assegnato da kris 4 anni fa
jonathan richieste modifiche 4 anni fa
jonathan lascia un commento

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 anni fa ha commentato

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 anni fa ha commentato

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 anni fa ha commentato

Sorry, I missed that. Thanks.

Sorry, I missed that. Thanks.
jonathan closed this pull request 4 anni fa
jonathan branch kris/host_to_domain eliminato 4 anni fa

Revisori

jonathan richieste modifiche 4 anni fa
La pull request è stata unita come 45579ec840.
Effettua l'accesso per partecipare alla conversazione.
Nessun revisore
Nessuna etichetta
Nessuna milestone
Nessuna assegnatario
2 Partecipanti
Notifiche
Data di scadenza

Nessuna data di scadenza impostata.

Dipendenze

Questo problema attualmente non ha alcuna dipendenza.

Caricamento…
Non ci sono ancora contenuti.