|
Re: Question to Unreachable Code [message #1451518 is a reply to message #1451215] |
Thu, 23 October 2014 23:59 |
|
On 10/23/2014 08:51 AM, Antonio Bloise wrote:
> Dear Eclipse Community,
>
> i am not sure if this is a default setting or if this won't be
> reckognized as an unreachable code.
> Using: Eclipse Java EE IDE for Web Developers.
> Version: Luna Release (4.4.0)
> Build id: 20140612-0600
> (and Versions below)
>
> This is an example piece of code of the unreachable code:
>
> String a = "";
> if(a.isEmpty()) {
> // a is always empty
> } else if(a.contains("x")) {
> // won't reach here
> }
>
> Do i oversee something, is it a bug or....?!
>
> thanks and greetings.
>
> I posted this under newcomer because this is my first post. greetings.
This has nothing to do with Eclipse. It's a Java question (and not a
bug, either). If you don't understand "unreachable code" please ask on a
forum like javaranch.com or stackoverflow.com.
|
|
|
Powered by
FUDForum. Page generated in 0.07773 seconds