Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Replace dCache's 'DirectoryStream' with Java's 'DirectoryStream'#7262

Open
LukasMansour wants to merge7 commits intodCache:master
base:master
Choose a base branch
Loading
fromLukasMansour:dcache-dirstream

Conversation

LukasMansour
Copy link
Member

@LukasMansourLukasMansour commentedAug 1, 2023
edited
Loading

Motivation:
Closes#3821

Modification:
Replaces dCache's old 'DirectoryStream' with Java's 'DirectoryStream'.

Removing dCache's oldDirectoryStream results in some emptyIOException catch-blocks that shouldn't be throwable...

Result:
The returned Streams ofDirectoryEntry are now always a type of JDK's NIODirectoryStream<DirectoryEntry>, dCache's customDirectoryStream is removed. There are some empty (throw RuntimeException) blocks forIOExceptions that are not throwable. They appear since the JDK InterfaceClosable defines aclose()-method with anIOException Throwable. andDirectoryStream inherits from Closable.

Signed-off-by: Lukas Mansourlukas.mansour@desy.de

@LukasMansourLukasMansour changed the titleMake dCache's 'DirectoryStream' an instance of Java's 'DirectoryStream'Replace dCache's 'DirectoryStream' with Java's 'DirectoryStream'Aug 3, 2023
@LukasMansourLukasMansour marked this pull request as ready for reviewAugust 3, 2023 08:40
# Conflicts:#modules/dcache-bulk/src/main/java/org/dcache/services/bulk/job/AbstractRequestContainerJob.java
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Replace custom org.dcache.util.list.DirectoryStream with java.nio.file.DirectoryStream
1 participant
@LukasMansour

[8]ページ先頭

©2009-2025 Movatter.jp