On 3/22/11 11:15 PM, Stefan Seelmann wrote:

For instance, the DnPlaser class (well, it's not even a class, it's an enum,
which sound very strange to me)
I just followed Joshua Bloch's "Effective Java(TM) Second Edition":
Item 3: Enforce the singleton property with (...) an enum type.

Good idea.
But
now that the parsers are only used from the Dn/Rdn class that may not
make sense anymore.
Well, I think it does make sense. I kept the enum around, I just changed the enum to be package protected.


--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com

Reply via email to