[SOLVED] Changing unreachable code behavior [message #1859295] |
Mon, 29 May 2023 00:54 |
Ken Nischan Messages: 7 Registered: December 2019 |
Junior Member |
|
|
Hi. It's not uncommon for me to throw a return in the middle of a method when debugging so I can test the beginning and not have it continue. In C# and PHP, they don't care. Java though makes it uncompilable. Quite irritating, as I have to do like if (1==1) return;
I saw in Preferences, Java, Compiler, Errors/Warnings you can change behavior for many things, but sadly unreachable code is not one of them. I saw "dead code" but it was set to warning so I assume that's not the same thing, as this is straight up red underlined non-compilable. I tried setting it to ignore anyway, but yea, had no effect.
Is there a way to change it to just a warning?
[Updated on: Tue, 30 May 2023 03:32] Report message to a moderator
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05406 seconds