<?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: JDK 5 &#8211; auto-boxing best practices</title>
	<atom:link href="http://brian.pontarelli.com/2004/07/15/jdk-5-auto-boxing-best-practices/feed/" rel="self" type="application/rss+xml" />
	<link>http://brian.pontarelli.com/2004/07/15/jdk-5-auto-boxing-best-practices/</link>
	<description>Brian Pontarelli</description>
	<lastBuildDate>Wed, 08 Feb 2012 15:34:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
	<item>
		<title>By: Tile Bathroom</title>
		<link>http://brian.pontarelli.com/2004/07/15/jdk-5-auto-boxing-best-practices/#comment-140760</link>
		<dc:creator>Tile Bathroom</dc:creator>
		<pubDate>Thu, 29 Dec 2011 16:39:41 +0000</pubDate>
		<guid isPermaLink="false">http://brian.pontarelli.com/?p=8#comment-140760</guid>
		<description>Normally I do not learn post on blogs, but I would like to say that this write-up very pressured me to take a look at and do it! Your writing style has been amazed me. Thank you, quite great article.</description>
		<content:encoded><![CDATA[<p>Normally I do not learn post on blogs, but I would like to say that this write-up very pressured me to take a look at and do it! Your writing style has been amazed me. Thank you, quite great article.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Manny Pacquiao trains with Freddie Roach &#124; boxing-fights.info</title>
		<link>http://brian.pontarelli.com/2004/07/15/jdk-5-auto-boxing-best-practices/#comment-136551</link>
		<dc:creator>Manny Pacquiao trains with Freddie Roach &#124; boxing-fights.info</dc:creator>
		<pubDate>Tue, 20 Sep 2011 11:43:03 +0000</pubDate>
		<guid isPermaLink="false">http://brian.pontarelli.com/?p=8#comment-136551</guid>
		<description>[...] JDK 5 &#8211; auto-boxing &#098;&#101;&#115;&#116; practices &#124; Invert Your Mind &#8211; Just wanted &#116;&#111; discuss quickly &#097; &#102;&#101;&#119; simple &#098;&#101;&#115;&#116; practices &#102;&#111;&#114; auto-boxing &#105;&#110; Java. This &#119;&#105;&#108;&#108; help prevent shooting ones self &#105;&#110; &#116;&#104;&#101; foot. If &#121;&#111;&#117; &#099;&#097;&#110; &#117;&#115;&#101; primitives &#100;&#111; it, &#105;&#102; &#121;&#111;&#117; can&#039;t don&#039;t. [...]</description>
		<content:encoded><![CDATA[<p>[...] JDK 5 &#8211; auto-boxing &#098;&#101;&#115;&#116; practices | Invert Your Mind &#8211; Just wanted &#116;&#111; discuss quickly &#097; &#102;&#101;&#119; simple &#098;&#101;&#115;&#116; practices &#102;&#111;&#114; auto-boxing &#105;&#110; Java. This &#119;&#105;&#108;&#108; help prevent shooting ones self &#105;&#110; &#116;&#104;&#101; foot. If &#121;&#111;&#117; &#099;&#097;&#110; &#117;&#115;&#101; primitives &#100;&#111; it, &#105;&#102; &#121;&#111;&#117; can&#039;t don&#039;t. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank Bruno becomes World Champion &#124; boxing-fights.info</title>
		<link>http://brian.pontarelli.com/2004/07/15/jdk-5-auto-boxing-best-practices/#comment-136285</link>
		<dc:creator>Frank Bruno becomes World Champion &#124; boxing-fights.info</dc:creator>
		<pubDate>Sat, 10 Sep 2011 15:04:07 +0000</pubDate>
		<guid isPermaLink="false">http://brian.pontarelli.com/?p=8#comment-136285</guid>
		<description>[...] JDK 5 &#8211; auto-boxing &#098;&#101;&#115;&#116; practices &#124; Invert Your Mind &#8211; Just wanted &#116;&#111; discuss quickly &#097; &#102;&#101;&#119; simple &#098;&#101;&#115;&#116; practices &#102;&#111;&#114; auto-boxing &#105;&#110; Java. This &#119;&#105;&#108;&#108; help prevent shooting ones self &#105;&#110; &#116;&#104;&#101; foot. If &#121;&#111;&#117; &#099;&#097;&#110; &#117;&#115;&#101; primitives &#100;&#111; it, &#105;&#102; &#121;&#111;&#117; can&#039;t don&#039;t. [...]</description>
		<content:encoded><![CDATA[<p>[...] JDK 5 &#8211; auto-boxing &#098;&#101;&#115;&#116; practices | Invert Your Mind &#8211; Just wanted &#116;&#111; discuss quickly &#097; &#102;&#101;&#119; simple &#098;&#101;&#115;&#116; practices &#102;&#111;&#114; auto-boxing &#105;&#110; Java. This &#119;&#105;&#108;&#108; help prevent shooting ones self &#105;&#110; &#116;&#104;&#101; foot. If &#121;&#111;&#117; &#099;&#097;&#110; &#117;&#115;&#101; primitives &#100;&#111; it, &#105;&#102; &#121;&#111;&#117; can&#039;t don&#039;t. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: liam</title>
		<link>http://brian.pontarelli.com/2004/07/15/jdk-5-auto-boxing-best-practices/#comment-115614</link>
		<dc:creator>liam</dc:creator>
		<pubDate>Mon, 19 Jul 2010 20:18:56 +0000</pubDate>
		<guid isPermaLink="false">http://brian.pontarelli.com/?p=8#comment-115614</guid>
		<description>My problem with the ternary logic is that you are assuming that null means zero.  
My problem with unboxing is, aside from the performance hits and the hard-to-trace null pointer exceptions, less-seasoned developers are treating the wrapper classes like they are primitives, which means that someone has to go behind them and clean up.
With the need to do so much checking and tiptoeing around auto boxing an unboxing, it is still a mystery to me why they were introduced.</description>
		<content:encoded><![CDATA[<p>My problem with the ternary logic is that you are assuming that null means zero.<br />
My problem with unboxing is, aside from the performance hits and the hard-to-trace null pointer exceptions, less-seasoned developers are treating the wrapper classes like they are primitives, which means that someone has to go behind them and clean up.<br />
With the need to do so much checking and tiptoeing around auto boxing an unboxing, it is still a mystery to me why they were introduced.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chandra Watson</title>
		<link>http://brian.pontarelli.com/2004/07/15/jdk-5-auto-boxing-best-practices/#comment-35401</link>
		<dc:creator>Chandra Watson</dc:creator>
		<pubDate>Thu, 13 Nov 2008 03:24:29 +0000</pubDate>
		<guid isPermaLink="false">http://brian.pontarelli.com/?p=8#comment-35401</guid>
		<description>83rzx3ig751h7kbb</description>
		<content:encoded><![CDATA[<p>83rzx3ig751h7kbb</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Pontarelli</title>
		<link>http://brian.pontarelli.com/2004/07/15/jdk-5-auto-boxing-best-practices/#comment-3033</link>
		<dc:creator>Brian Pontarelli</dc:creator>
		<pubDate>Wed, 17 Jan 2007 22:18:33 +0000</pubDate>
		<guid isPermaLink="false">http://brian.pontarelli.com/?p=8#comment-3033</guid>
		<description>Sorry for the delayed response on this... Autoboxing happens anytime you call a method, assign a variable or otherwise cast the type from a primitive to a wrapper.

The best practice depends on your needs. If you need to have a null value, then declare your method with the wrapper, otherwise use a primitive.</description>
		<content:encoded><![CDATA[<p>Sorry for the delayed response on this&#8230; Autoboxing happens anytime you call a method, assign a variable or otherwise cast the type from a primitive to a wrapper.</p>
<p>The best practice depends on your needs. If you need to have a null value, then declare your method with the wrapper, otherwise use a primitive.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dh</title>
		<link>http://brian.pontarelli.com/2004/07/15/jdk-5-auto-boxing-best-practices/#comment-2870</link>
		<dc:creator>dh</dc:creator>
		<pubDate>Fri, 12 Jan 2007 14:13:31 +0000</pubDate>
		<guid isPermaLink="false">http://brian.pontarelli.com/?p=8#comment-2870</guid>
		<description>Hi

I liked this post very much and felt it was very informing, and I just want to try and understand unboxing/boxing correctly.

Does boxing happen when you parse a primitive to a method?

ex. someMethod(int value){}

I&#039;m just trying to figure out which is the best practice when creating methods/constructor, using primitives or wrapped primitives?

ex. MyClass(Integer id, Long value){}

vs.

ex. MyClass(int id, long value){}

Hmm not sure I formulated my question correctly, but alas english is not my native tongue, so bare with me.

dh

btw. your site was the first hit on &quot;java boxing unboxing best practice&quot; on google</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>I liked this post very much and felt it was very informing, and I just want to try and understand unboxing/boxing correctly.</p>
<p>Does boxing happen when you parse a primitive to a method?</p>
<p>ex. someMethod(int value){}</p>
<p>I&#8217;m just trying to figure out which is the best practice when creating methods/constructor, using primitives or wrapped primitives?</p>
<p>ex. MyClass(Integer id, Long value){}</p>
<p>vs.</p>
<p>ex. MyClass(int id, long value){}</p>
<p>Hmm not sure I formulated my question correctly, but alas english is not my native tongue, so bare with me.</p>
<p>dh</p>
<p>btw. your site was the first hit on &#8220;java boxing unboxing best practice&#8221; on google</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wes Maldonado: Data Junkie &#187; Blog Archive &#187; Java 1.5 Autoboxing Links</title>
		<link>http://brian.pontarelli.com/2004/07/15/jdk-5-auto-boxing-best-practices/#comment-135</link>
		<dc:creator>Wes Maldonado: Data Junkie &#187; Blog Archive &#187; Java 1.5 Autoboxing Links</dc:creator>
		<pubDate>Thu, 01 Jun 2006 20:11:35 +0000</pubDate>
		<guid isPermaLink="false">http://brian.pontarelli.com/?p=8#comment-135</guid>
		<description>[...] http://brian.pontarelli.com/2004/07/15/jdk-5-auto-boxing-best-practices/ [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://brian.pontarelli.com/2004/07/15/jdk-5-auto-boxing-best-practices/" rel="nofollow">http://brian.pontarelli.com/2004/07/15/jdk-5-auto-boxing-best-practices/</a> [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

