XML Feeds

.

[java-dev] Re: perils of referencing

jbmaxwell jbmaxwell at rubato-music.com
Thu Feb 7 14:49:35 MST 2008


oh, duh... I just looked over some of my older code, and it looks like I've generally used something more like this:

ArrayList<Thing> theseThings = new ArrayList<Thing>();

theseThings.addAll(ComplexThing.getThings());

That avoids the problem, too, doesn't it?

J.





More information about the java-dev mailing list