<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Mutable entries in a Collection</title>
	<atom:link href="http://javablog.co.uk/2008/10/19/mutable-entries-in-a-collection/feed/" rel="self" type="application/rss+xml" />
	<link>http://javablog.co.uk/2008/10/19/mutable-entries-in-a-collection/</link>
	<description>by Java coders, for Java coders</description>
	<lastBuildDate>Tue, 15 Nov 2011 21:34:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Javablog &#187; Reading and Validating XML in Java with XPath</title>
		<link>http://javablog.co.uk/2008/10/19/mutable-entries-in-a-collection/comment-page-1/#comment-20779</link>
		<dc:creator>Javablog &#187; Reading and Validating XML in Java with XPath</dc:creator>
		<pubDate>Sat, 15 Nov 2008 00:17:56 +0000</pubDate>
		<guid isPermaLink="false">http://javablog.co.uk/?p=88#comment-20779</guid>
		<description>&lt;p&gt;[...] Javablog   by Java coders, for Java coders     &#171; Mutable entries in a Collection [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[&#8230;] Javablog   by Java coders, for Java coders     &laquo; Mutable entries in a Collection [&#8230;]</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://javablog.co.uk/2008/10/19/mutable-entries-in-a-collection/comment-page-1/#comment-15852</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Sat, 01 Nov 2008 17:20:01 +0000</pubDate>
		<guid isPermaLink="false">http://javablog.co.uk/?p=88#comment-15852</guid>
		<description>&lt;p&gt;Actually it&#039;s not threads that cause problems in these situations. &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;
List&lt;String&gt; list = new ArrayList&lt;String&gt;();
Map&lt;List&lt;String&gt;,String&gt; map = new HashMap&lt;List&lt;String&gt;,String&gt;();
list.add(&quot;one&quot;);
map.put(list, &quot;value&quot;);
list.add(&quot;two&quot;);
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;This is problematic by itself in a single-threaded environment. Now if you publish state, i.e. if you were to expose the list variable, then threads can bring additional havoc.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Actually it&#8217;s not threads that cause problems in these situations. </p>

<pre class="highlighted"><code>
List&lt;String&gt; list = new ArrayList&lt;String&gt;();
Map&lt;List&lt;String&gt;,String&gt; map = new HashMap&lt;List&lt;String&gt;,String&gt;();
list.add("one");
map.put(list, "value");
list.add("two");
</code></pre>

<p>This is problematic by itself in a single-threaded environment. Now if you publish state, i.e. if you were to expose the list variable, then threads can bring additional havoc.</p>]]></content:encoded>
	</item>
</channel>
</rss>

