Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.help > #915

Re: Object copies?

From Roedy Green <see_website@mindprod.com.invalid>
Newsgroups comp.lang.java.help
Subject Re: Object copies?
Date 2011-08-01 08:45 -0700
Organization Canadian Mind Products
Message-ID <4gid37dpj8ep4aepuidks51fd96groh2nd@4ax.com> (permalink)
References <j14moo$5cf$1@dont-email.me>

Show all headers | View raw


On Sun, 31 Jul 2011 15:59:43 -0700, Knute Johnson
<september@knutejohnson.com> 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. 

Back to comp.lang.java.help | Previous | NextPrevious in thread | Find similar


Thread

Object copies? Knute Johnson <september@knutejohnson.com> - 2011-07-31 15:59 -0700
  Re: Object copies? Patricia Shanahan <pats@acm.org> - 2011-07-31 16:26 -0700
    Re: Object copies? Knute Johnson <september@knutejohnson.com> - 2011-07-31 16:38 -0700
      Re: Object copies? markspace <-@.> - 2011-07-31 16:47 -0700
        Re: Object copies? Knute Johnson <september@knutejohnson.com> - 2011-07-31 17:14 -0700
  Re: Object copies? Roedy Green <see_website@mindprod.com.invalid> - 2011-08-01 08:45 -0700

csiph-web