Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: Roedy Green Newsgroups: comp.lang.java.help Subject: Re: Object copies? Date: Mon, 01 Aug 2011 08:45:48 -0700 Organization: Canadian Mind Products Lines: 14 Message-ID: <4gid37dpj8ep4aepuidks51fd96groh2nd@4ax.com> References: Reply-To: Roedy Green NNTP-Posting-Host: RCd/Ul4tyxGUBII8WGwa5g.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: Forte Agent 6.00/32.1186 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.help:915 On Sun, 31 Jul 2011 15:59:43 -0700, Knute Johnson wrote, quoted or indirectly quoted someone who said : >If I just create a new String with the >String(String str) constructor, FindBugs complains. That is the correct way to do it. It is very rare you really need to do that since Strings are immutable. Just ignore the warning. -- Roedy Green Canadian Mind Products http://mindprod.com Most of computer code is for telling the computer what do if some very particular thing goes wrong.