-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-21970][Core] Fix Redundant Throws Declarations in Java Codebase #19182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Test build #3915 has finished for PR 19182 at commit
|
3181f69 to
5a281d2
Compare
|
Some of these 'throws' clauses may not be removable because they cause callers that catch the checked exception to fail to compile. Removing "throws Exception" in tests isn't obviously helpful, because it means the signature has to change any time the tested code happens to throw a new checked exception. There's no API problem as nothing invokes these methods directly. Private non-test methods, maybe. |
a5b0d31 to
b69a20b
Compare
|
@srowen makes perfect sense => rolled back all changes to tests + publicly exposed methods (those package private ones adjusted are on non-public classes). |
srowen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This kind of thing looks like good cleanup if it compiles and passes MiMa
|
Test build #3916 has finished for PR 19182 at commit
|
|
@srowen looks like we're all green :) |
|
Ah OK one more subtle thing @original-brownbear -- the code you see in org/apache/hive packages is, I believe, copied from Hive. Therefore it's probably best to leave it as-is because it makes it easier to update it if it hasn't varied at all from its source. Could you reverse those? otherwise looks OK. |
b69a20b to
cb8e80b
Compare
|
@srowen done, all changes to |
|
Test build #3921 has finished for PR 19182 at commit
|
|
Merged to master |
What changes were proposed in this pull request?
ShuffleExternalSorter#closeAndGetSpillsHow was this patch tested?
Build still passes.