Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Ecco perchè non bisognerebbe usare mai java.net.URL e usare invece java.net.URI

La classe java.net.URL veniva aggiunta nella libreria standard di Java nel 1995, e già allora era presente un grave Problema con l’implementazione del suo metodo equals. Il problema è evidente dall’immagine che segue: Infatti, direttamente dalla sua documentazione: Two hosts are considered equivalent if both host names can be resolved into the same IP addresses; […]



This post first appeared on InformaticaLab, please read the originial post: here

Share the post

Ecco perchè non bisognerebbe usare mai java.net.URL e usare invece java.net.URI

×

Subscribe to Informaticalab

Get updates delivered right to your inbox!

Thank you for your subscription

×