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


Groups > comp.lang.java.programmer > #16178

Re: unreachable code

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.mixmin.net!aioe.org!.POSTED!not-for-mail
From Cecil Westerhof <Cecil@decebal.nl>
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> (permalink)
References <09b77849-931d-46d9-b9b7-89441b81734e@googlegroups.com> <jua1ml$atq$1@dont-email.me>
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

Show key headers only | View raw


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

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

unreachable code bob smith <bob@coolfone.comze.com> - 2012-07-19 14:50 -0700
  Re: unreachable code Arne Vajhøj <arne@vajhoej.dk> - 2012-07-19 18:02 -0400
  Re: unreachable code glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2012-07-19 22:04 +0000
  Re: unreachable code Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-07-19 15:06 -0700
  Re: unreachable code Eric Sosman <esosman@ieee-dot-org.invalid> - 2012-07-19 18:28 -0400
    Re: unreachable code Cecil Westerhof <Cecil@decebal.nl> - 2012-07-21 09:47 +0200
  Re: unreachable code Roedy Green <see_website@mindprod.com.invalid> - 2012-07-19 16:15 -0700

csiph-web