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

Remove final on isSingle PropertyExpression #5455

Merged
merged 2 commits into from
Mar 30, 2023

Conversation

TheLimeGlass
Copy link
Collaborator

@TheLimeGlass TheLimeGlass commented Feb 17, 2023

Description

This final in PropertyExpression is a restriction to the API usage. It should not be final. Some classes even in Skript are forced to use SimpleExpression just because of the isSingle method being final.

This does not make sense anymore for properties that return multiples such as, indices of list variable, permissions, armour, lines of a sign, contents of an inventory, etc. The list goes on and on. Property expressions that could be utilizing the PropertyExpression class.

Related issues: #5521

@TheLimeGlass TheLimeGlass added the enhancement Feature request, an issue about something that could be improved, or a PR improving something. label Feb 17, 2023
@TheLimeGlass TheLimeGlass changed the title Remove final on isSingle Remove final on isSingle PropertyExpression Feb 17, 2023
@TheLimeGlass TheLimeGlass marked this pull request as draft February 17, 2023 05:44
@TheLimeGlass

This comment was marked as resolved.

@TheLimeGlass TheLimeGlass merged commit 80dc56a into master Mar 30, 2023
@TheLimeGlass TheLimeGlass deleted the enhancement/property-is-single branch March 30, 2023 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature request, an issue about something that could be improved, or a PR improving something.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants