Skip to content

Tag: dead-code

Java. Handle dead code (by application logic) in catch block

I have the following piece of code. Is there a better way to handle the dead catch? The “file” variable is loaded by a resource manager, that already handle the case of a file not found (by throwing an exception itself). This is “dead code” only because of application logic, if it was not for the manager doing the check,