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


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

Re: Help with methods, classes and parameters

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed1.swip.net!newsfeed2.funet.fi!newsfeeds.funet.fi!feeder1.news.elisa.fi!uutiset.elisa.fi!7564ea0f!not-for-mail
From Jukka Lahtinen <jtfjdehf@hotmail.com.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: Help with methods, classes and parameters
Organization N/A
References <lra1dp$9jh$1@dont-email.me> <lra7be$l2s$1@gregory.bnet.hr> <53d993b9$0$299$14726298@news.sunsite.dk> <lrc70j$rht$1@dont-email.me> <lrcidd$ndj$1@dont-email.me> <lrdrqp$u82$1@dont-email.me>
X-no-archive yes
Content-Transfer-Encoding 8bit
Message-ID <lvegx07fch.fsf@saunalahti.fi> (permalink)
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)
Cancel-Lock sha1:In7Wd1Vgs9gZ5AaHGTnI/u+uJ9E=
MIME-Version 1.0
Content-Type text/plain
Lines 17
Date Fri, 01 Aug 2014 12:02:06 +0300
NNTP-Posting-Host 91.155.88.191
X-Complaints-To newsmaster@saunalahti.com
X-Trace uutiset.elisa.fi 1406883726 91.155.88.191 (Fri, 01 Aug 2014 12:02:06 EEST)
NNTP-Posting-Date Fri, 01 Aug 2014 12:02:06 EEST
Xref csiph.com comp.lang.java.programmer:29480

Show key headers only | View raw


markspace <markspace@nospam.nospam> writes:

>     switch (optionInt) {
>     case 0:
>         return;
>         break;

> I left in the break because when you edit a program, sometimes you forget
> and change things, and the break helps prevent an unexpected fall through
> when you make a change.  It doesn't hurt anything to leave it in even
> though the break is extraneous.

However, I suspect it may cause a warning about unreachable code and
even prevent compilation with some IDE settings.

-- 
Jukka Lahtinen

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


Thread

Help with methods, classes and parameters Scott Dunning <scottwd01@gmail.com> - 2014-07-29 22:58 -0700
  Re: Help with methods, classes and parameters Josip Almasi <joe@vrspace.org> - 2014-07-30 09:37 +0200
    Re: Help with methods, classes and parameters Scott Dunning <scottwd01@gmail.com> - 2014-07-30 16:59 -0700
      Re: Help with methods, classes and parameters Josip Almasi <joe@vrspace.org> - 2014-07-31 10:42 +0200
    Re: Help with methods, classes and parameters Scott Dunning <scottwd01@gmail.com> - 2014-07-30 17:29 -0700
    Re: Help with methods, classes and parameters Arne Vajhøj <arne@vajhoej.dk> - 2014-07-30 20:54 -0400
      Re: Help with methods, classes and parameters markspace <markspace@nospam.nospam> - 2014-07-30 18:43 -0700
        Re: Help with methods, classes and parameters Scott Dunning <scottwd01@gmail.com> - 2014-07-30 22:01 -0700
          Re: Help with methods, classes and parameters markspace <markspace@nospam.nospam> - 2014-07-31 09:45 -0700
            Re: Help with methods, classes and parameters Steven Simpson <ss@domain.invalid> - 2014-08-01 09:00 +0100
              Re: Help with methods, classes and parameters markspace <markspace@nospam.nospam> - 2014-08-01 09:07 -0700
            Re: Help with methods, classes and parameters Jukka Lahtinen <jtfjdehf@hotmail.com.invalid> - 2014-08-01 12:02 +0300
  Re: Help with methods, classes and parameters Jeff Higgins <jeff@invalid.invalid> - 2014-07-30 17:57 -0400

csiph-web