Skip to content

Deprecate outdated utils/synchronized reference#6671

Closed
kiip1 wants to merge 8 commits into
SkriptLang:feature/deprecate-outdated-utilsfrom
kiip1:deprecate-outdated-utils/synchronized-reference
Closed

Deprecate outdated utils/synchronized reference#6671
kiip1 wants to merge 8 commits into
SkriptLang:feature/deprecate-outdated-utilsfrom
kiip1:deprecate-outdated-utils/synchronized-reference

Conversation

@kiip1
Copy link
Copy Markdown
Contributor

@kiip1 kiip1 commented May 8, 2024

No description provided.

Moderocky and others added 8 commits May 8, 2024 11:11
* Mark VectorMath as internal

* Replace usages
* Make Setter a Consumer.

* Remove Setter from Option.

* Remove setter from entry validator.

* Remove setter from enum entry validator.

* Remove setter from parsed entry validator.

* Remove setter from parsed section validator.
* Make checker a Java predicate.

* Deprecate unused Njol predicate for removal.

* Make checker extensions use predicate directly.

* Remove checker from expression.

* Remove checker from utils.

* Deprecate Checker for removal.

* Abstract checker to predicate from simple syntax

* Remove remaining uses of checker.
Copy link
Copy Markdown
Member

@Moderocky Moderocky left a comment

Choose a reason for hiding this comment

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

This looks correct but I feel like it would be good for somebody to test it works first.

@Moderocky Moderocky added the housekeeping Housekeeping-related issue or task. label May 8, 2024
@Moderocky Moderocky force-pushed the feature/deprecate-outdated-utils branch from ebbf61b to 24c10f9 Compare May 30, 2024 08:08
Copy link
Copy Markdown
Member

@APickledWalrus APickledWalrus left a comment

Choose a reason for hiding this comment

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

If this happens to get taken over, I just have a function documentation-related thoughts. I am not a huge fan of the VectorMath changes, as there is a lot of method duplication going on now.

import java.util.function.Predicate;

/**
* @author Peter Güttinger
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
* @author Peter Güttinger
* @deprecated Use {@link Predicate}


import java.util.function.Predicate;

@Deprecated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
@Deprecated
/**
* Use {@link Predicate}
*/
@Deprecated


import java.util.function.Function;

@Deprecated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
@Deprecated
/**
* Use {@link Function}
*/
@Deprecated

Comment on lines 26 to 27
* @author Peter G�ttinger
*
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
* @author Peter Gttinger
*
* @deprecated Use {@link java.util.function.Predicate}


import java.util.function.Consumer;

@Deprecated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
@Deprecated
/**
* Use {@link Consumer}
*/
@Deprecated

@APickledWalrus
Copy link
Copy Markdown
Member

APickledWalrus commented Dec 20, 2024

Given this is rather outdated and seems to mostly be duplicated/featured in #6670, I will be closing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

housekeeping Housekeeping-related issue or task.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants