Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: markspace <-@.> Newsgroups: comp.lang.java.programmer Subject: Re: Getter/Setter - Serialization Date: Sun, 24 Jul 2011 10:26:45 -0700 Organization: A noiseless patient Spider Lines: 17 Message-ID: References: <1aaf12f8-e9da-4767-8d40-36a585e13cfe@m18g2000vbl.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sun, 24 Jul 2011 17:26:49 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="XjIWM99mD7Ijfdu600oVPA"; logging-data="2151"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+LH3rFsiDD3n68lBzRdUQogoIUB8sKUfQ=" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0 In-Reply-To: <1aaf12f8-e9da-4767-8d40-36a585e13cfe@m18g2000vbl.googlegroups.com> Cancel-Lock: sha1:fI3nvq3JfD8rTecgUqo67IffffI= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:6511 On 7/24/2011 9:33 AM, Thomas Lehmann wrote: > The warning message comes with PMD (plugin). I'm intending to use > XStream for XML serialization and so far I can see there is no need > to provide getter and setter. I haven't used XStream; if you don't think there's a problem, I'd ignore the PMD plug-in and just do the right thing. PMD is likely in error. > I know that article (URL) but reading also "Effective Java" you will > be warned about the problem with using "Serializable". I don't have time to review EJ right now, care to refresh my memory what is pertinent in EJ to this problem?