You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have numerous places in Boot where we've declared that an exception is thrown when it isn't or when the exception is a RuntimeException so it doesn't need to be declared. There's a PR that removes them which I am in favour of. I think it would also be nice to try and stop them reappearing. To that end, we could change the Eclipse JDT core preferences. Instead of the following:
The changes above will result in warnings being generated for checked exceptions that are unnecessarily declared as thrown. It won't help with unchecked exceptions.
The text was updated successfully, but these errors were encountered:
This will allow an exception to be declared thrown if it's mentioned in the javadoc or if it comes from the signature of a method that's being overridden.
This will allow an exception to be declared thrown if it's mentioned in the javadoc or if it comes from the signature of a method that's being overridden.
@wilkinsona yes, when I was erasing an exception that was never thrown, I deliberately kept the case you mentioned.
Uh oh!
There was an error while loading. Please reload this page.
We have numerous places in Boot where we've declared that an exception is thrown when it isn't or when the exception is a
RuntimeException
so it doesn't need to be declared. There's a PR that removes them which I am in favour of. I think it would also be nice to try and stop them reappearing. To that end, we could change the Eclipse JDT core preferences. Instead of the following:spring-javaformat/spring-javaformat-eclipse/io.spring.javaformat.eclipse/src/io/spring/javaformat/eclipse/projectsettings/org.eclipse.jdt.core.prefs
Lines 91 to 94 in c8835c8
We'd use the following:
The changes above will result in warnings being generated for checked exceptions that are unnecessarily declared as thrown. It won't help with unchecked exceptions.
The text was updated successfully, but these errors were encountered: