-
Notifications
You must be signed in to change notification settings - Fork 47
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
ListTag improvements #91
Open
HoldYourWaffle
wants to merge
8
commits into
Querz:nbt7
Choose a base branch
from
HoldYourWaffle:listtag-improvements
base: nbt7
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Commits on May 31, 2023
-
Rename ListTag.iterateType to asList
The implementation of TypedListTag fully supports mutation with the necessary validation checks, so it's purpose isn't just iteration (anymore).
Configuration menu - View commit details
-
Copy full SHA for e1673f6 - Browse repository at this point
Copy the full SHA e1673f6View commit details -
Decouple ListTag type from emptiness
There's nothing inherently wrong with a typed but empty list, as long as it's properly serialized. Resetting a ListTag's type when it runs empty circumvents pollution checks, meaning a ListTag could (accidentally) change its type, which feels like asking for trouble :)
Configuration menu - View commit details
-
Copy full SHA for 6a0cb3b - Browse repository at this point
Copy the full SHA 6a0cb3bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9c30043 - Browse repository at this point
Copy the full SHA 9c30043View commit details -
Git seems to generate a very unfortunate diff for this...
Configuration menu - View commit details
-
Copy full SHA for f2f0958 - Browse repository at this point
Copy the full SHA f2f0958View commit details -
Configuration menu - View commit details
-
Copy full SHA for 67b28fe - Browse repository at this point
Copy the full SHA 67b28feView commit details -
Configuration menu - View commit details
-
Copy full SHA for 66770fe - Browse repository at this point
Copy the full SHA 66770feView commit details -
Configuration menu - View commit details
-
Copy full SHA for 475019e - Browse repository at this point
Copy the full SHA 475019eView commit details -
Implement ListTag constructor with addAll
De-dupes validation logic. Modifying a passed in list circumvented validation. It's still possible to modify a `ListTag` using the `List`-interface via `asList`.
Configuration menu - View commit details
-
Copy full SHA for 8671fe5 - Browse repository at this point
Copy the full SHA 8671fe5View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.