When Joshua Bloch mentions that Cloneable interface is broken in Java, why the Prototype pattern which uses clone to facilitate object creation is not considered an anti-pattern in Java development ?
"It's a shame that Cloneable is broken, but it happens." - Joshua Bloch
Aucun commentaire:
Enregistrer un commentaire