Skip to content
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

make repository builder more extensible #124

Merged
merged 2 commits into from
Dec 18, 2024

Conversation

Mewel
Copy link
Contributor

@Mewel Mewel commented Dec 13, 2024

Resolves #123

@Mewel Mewel changed the title make repsitory builder more extensible make repository builder more extensible Dec 13, 2024
@@ -411,7 +411,7 @@ public MutableOcflRepository buildMutable() {
return buildInternal(DefaultMutableOcflRepository.class);
}

private <T extends OcflRepository> T buildInternal(Class<T> clazz) {
protected <T extends OcflRepository> T buildInternal(Class<T> clazz) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why does this need to be made protected? If you're subclassing OcflRepositoryBuilder, wouldn't you just override build()?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

True, I will fix this.

@pwinckles pwinckles merged commit c313b37 into OCFL:main Dec 18, 2024
5 checks passed
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.

OcflRepositoryBuilder internal API is private
2 participants