You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by sebb <se...@gmail.com> on 2011/11/10 16:11:22 UTC
[MATH] BOBYQAOptimizer.java - switch case fallthrough warnings
Eclipse reports several such for BOBYQAOptimizer.java:
Switch case may be entered by falling through previous case.
If intended, add a new comment //$FALL-THROUGH$ on the line above
I don't know if these are intended or not - any offers?
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org
Re: [MATH] BOBYQAOptimizer.java - switch case fallthrough warnings
Posted by Gilles Sadowski <gi...@harfang.homelinux.org>.
On Thu, Nov 10, 2011 at 03:11:22PM +0000, sebb wrote:
> Eclipse reports several such for BOBYQAOptimizer.java:
>
> Switch case may be entered by falling through previous case.
> If intended, add a new comment //$FALL-THROUGH$ on the line above
>
> I don't know if these are intended or not - any offers?
They are intended *in the original code*. The purpose is to get rid of
these, together with all the "state" machinery. See the MATH-621.
All the better that a checking tool keeps reminding us that these constructs
are not expected in a clean Java code.
Gilles
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org