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

Add convenience Content.withId(String) #6937

Merged
merged 2 commits into from May 30, 2023
Merged

Conversation

snazy
Copy link
Member

@snazy snazy commented May 30, 2023

No description provided.

@@ -97,6 +97,8 @@ public interface Type {
@JsonIgnore
public abstract Type getType();

public abstract Content withId(String id);
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe:

Suggested change
public abstract Content withId(String id);
public abstract Content withId(@Nullable @jakarta.annotation.Nullable String id);

Conversely we could require id to be non null and introduce a withoutId() method, wdyt?

Copy link
Member Author

Choose a reason for hiding this comment

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

Nope - ID must be nullable - otherwise you could never add new content

@snazy snazy requested a review from dimas-b May 30, 2023 14:23
@snazy snazy merged commit bb3cda1 into projectnessie:main May 30, 2023
22 checks passed
@snazy snazy deleted the content-with-id branch May 30, 2023 18:23
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.

None yet

3 participants