All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sonar.l10n.findbugs.REC_CATCH_EXCEPTION.html Maven / Gradle / Ivy

There is a newer version: 5.1
Show newest version

This method uses a try-catch block that catches Exception objects, but Exception is not thrown within the try block, and RuntimeException is not explicitly caught. It is a common bug pattern to say try { ... } catch (Exception e) { something } as a shorthand for catching a number of types of exception each of whose catch blocks is identical, but this construct also accidentally catches RuntimeException as well, masking potential bugs.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy