Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.mixmin.net!aioe.org!.POSTED!not-for-mail From: Cecil Westerhof Newsgroups: comp.lang.java.programmer Subject: Re: unreachable code Date: Sat, 21 Jul 2012 09:47:15 +0200 Organization: Decebal Computing Lines: 21 Message-ID: <87pq7p4ku4.fsf@Compaq.site> References: <09b77849-931d-46d9-b9b7-89441b81734e@googlegroups.com> NNTP-Posting-Host: lYLrXPFpjyZ8237ODaoN+w.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:DtcOkrknB37KR6myiNo/RbtGB78= X-Homepage: http://www.decebal.nl/ Xref: csiph.com comp.lang.java.programmer:16178 Op vrijdag 20 jul 2012 00:28 CEST schreef Eric Sosman: > On 7/19/2012 5:50 PM, bob smith wrote: >> Is there an easy way to tell Java not to bug me about unreachable code? > > "Delete it" comes to mind ... > > Could you describe your situation in more detail? The > unreachable code will never be executed; why do you wish to > keep it around? I assume you've got some better reason than > "I admire the sheer beauty of useless clutter;" what is it? I am not the original poster, but it could be that he uses a system that generates the code. I can understand that he think it is not nice to comment out or delete the code every time it is generated again. Bad generator of-course, but we do not always have a choice. -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof