Re: XStream versus XMLEncoder



GArlington wrote:


Eclipse has option to generate getters and setters. And constructors
with (or without) parameters.
....
You do get a compile time error (or warning) if your private (I set
all vars private, unless they HAVE to be NOT private) vars are not
accessible.

And again, having all of the above (setters AND default constructor)
does not mean that YOU have to use them. In your program you can just
ignore them...

Not really. You still have to maintain them, write test cases against them, they still bloat your code and make downloads longer, etc.

This seems to me to be a basic POJO vs JavaBeans pattern discussion. Both have their place. Design the software the way it should be designed. Don't try to justify doing only one thing because "it's always no-cost." It'll cost somebody something.


.