designwizard icon indicating copy to clipboard operation
designwizard copied to clipboard

Blocker Bug in FileUtil.java

Open catharinequintans opened this issue 8 years ago • 0 comments

return" statements should not occur in "finally" blocks.

This rule raises an issue when a jump statement (break, continue, return, throw, and goto) would force control flow to leave a finally block.

The finally block is always executed after everything else. It'll override the return statement present in 'try' or 'catch' blocks.

More information in 'Don't return in finally clause' and 'The Java Hall of #Shame'.

catharinequintans avatar May 17 '16 18:05 catharinequintans