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

Hide the generated SpdxId class from the public API by marking it as internal #398

Closed

Conversation

TheMrMilchmann
Copy link
Contributor

This is not used anywhere in the public API and probably should not be exposed.

This is based on #397.

@TheMrMilchmann TheMrMilchmann changed the title Hides the generated SpdxId class from the public API by marking it as internal Hide the generated SpdxId class from the public API by marking it as internal Feb 24, 2025
@JakeWharton
Copy link
Collaborator

These are public for usage in build files to pass to our allow-prefixed APIs. Should probably be generating Java though so we stay usable from Groovy.

@TheMrMilchmann TheMrMilchmann deleted the upstream/internal-spdxid branch February 25, 2025 07:46
@TheMrMilchmann
Copy link
Contributor Author

Thanks for clarifying, this makes perfect sense.

In this case, wouldn't it make sense to add overloads to allow functions that take a SpdxId instead of requiring allow(SpdxId.Apache_20.id)?

Should probably be generating Java though so we stay usable from Groovy.

Are you referring to API ergonomics? This could probably be solved by using @JvmField, no?

@JakeWharton
Copy link
Collaborator

Probably? Maybe @hfhbd remembers what was next. I did inadvertently sit on the PR to add the feature for too long so we probably lost any planned follow-ups.

@hfhbd
Copy link
Contributor

hfhbd commented Feb 26, 2025

Yeah, I had not enough time.

In this case, wouldn't it make sense to add overloads to allow functions that take a SpdxId instead of requiring allow(SpdxId.Apache_20.id)?

That is the idea.

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.

3 participants