Skip to content

[IO-776] Fix parameters to requireNonNull call#368

Closed
cpovirk wants to merge 1 commit into
apache:masterfrom
cpovirk:DeferredFileOutputStream-requireNonNull
Closed

[IO-776] Fix parameters to requireNonNull call#368
cpovirk wants to merge 1 commit into
apache:masterfrom
cpovirk:DeferredFileOutputStream-requireNonNull

Conversation

@cpovirk

@cpovirk cpovirk commented Jul 20, 2022

Copy link
Copy Markdown
Contributor

Currently, the call checks that the literal string "prefix" is
non-null, which of course it is :)

Currently, the call checks that the literal string `"prefix"` is
non-null, which of course it is :)
@cpovirk

cpovirk commented Jul 20, 2022

Copy link
Copy Markdown
Contributor Author

This felt small enough to get by without a JIRA ticket, but I'm happy to file one if you'd like.

@kinow kinow left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch! I'll create a placeholder JIRA and add the change in changes.xml so users are aware of this, in case anyone sees an exception after this change. Thanks a lot @cpovirk !

@kinow kinow changed the title Fix parameters to requireNonNull call. [IO-776] Fix parameters to requireNonNull call Jul 20, 2022
@kinow kinow closed this in 9a35bb0 Jul 20, 2022
@kinow

kinow commented Jul 20, 2022

Copy link
Copy Markdown
Member

Merged! Thanks again @cpovirk

dongjoon-hyun pushed a commit to apache/spark that referenced this pull request May 24, 2023
### What changes were proposed in this pull request?
The pr aims to upgrade common-io from 2.11.0 to 2.12.0.

### Why are the changes needed?
common-io new version includes some improvement & bug fixed, eg
- apache/commons-io#450
- apache/commons-io#368
- [Add PathUtils.touch(Path)](apache/commons-io@fd7c818) The error exception of the FileUtils.touch method has been changed from `java.io.FileNotFoundException` to `java.nio.file.NoSuchFileException`
- common-io 2.11.0 VS 2.12.0
apache/commons-io@rel/commons-io-2.11.0...rel/commons-io-2.12.0

### Does this PR introduce _any_ user-facing change?
No.

### How was this patch tested?
Pass GA.

Closes #41271 from panbingkun/SPARK-43739.

Authored-by: panbingkun <pbk1982@gmail.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
czxm pushed a commit to czxm/spark that referenced this pull request Jun 12, 2023
### What changes were proposed in this pull request?
The pr aims to upgrade common-io from 2.11.0 to 2.12.0.

### Why are the changes needed?
common-io new version includes some improvement & bug fixed, eg
- apache/commons-io#450
- apache/commons-io#368
- [Add PathUtils.touch(Path)](apache/commons-io@fd7c818) The error exception of the FileUtils.touch method has been changed from `java.io.FileNotFoundException` to `java.nio.file.NoSuchFileException`
- common-io 2.11.0 VS 2.12.0
apache/commons-io@rel/commons-io-2.11.0...rel/commons-io-2.12.0

### Does this PR introduce _any_ user-facing change?
No.

### How was this patch tested?
Pass GA.

Closes apache#41271 from panbingkun/SPARK-43739.

Authored-by: panbingkun <pbk1982@gmail.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants