Path: csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: glen herrmannsfeldt Newsgroups: comp.lang.java.programmer Subject: Re: unreachable code Date: Thu, 19 Jul 2012 22:04:29 +0000 (UTC) Organization: Aioe.org NNTP Server Lines: 25 Message-ID: References: <09b77849-931d-46d9-b9b7-89441b81734e@googlegroups.com> NNTP-Posting-Host: H0vc4U5LIRkRHNPyGCs2dA.user.speranza.aioe.org X-Complaints-To: abuse@aioe.org User-Agent: tin/1.9.6-20100522 ("Lochruan") (UNIX) (Linux/2.6.32-5-amd64 (x86_64)) X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.java.programmer:16120 bob smith wrote: > Is there an easy way to tell Java not to bug me about unreachable code? How unreachable is it? As I understand it, the compiler is supposed to understand if(false) { code } and even public static final boolean debug=false; if(debug) code; without complaint. (That is, the Java replacement for C's #if 0 #endif ) -- glen