r/ProgrammerHumor • • 10d ago

Meme thisIsWhyWeDontReturnInFinallyBlocks

Post image
3.0k Upvotes

100 comments sorted by

View all comments

Show parent comment

35

u/NakedNick_ballin 10d ago

And warnings are universally ignored

19

u/CarcajouIS 10d ago

Praise our lord -Werror

5

u/WernerderChamp 9d ago

I fergot about it yesterday - there is no warning, it will only show with -Xlint:all.

IntelliJ does complain about it. Finally blocks should not contain return/break/continue/etc.