Skript

Skript

743k Downloads

Stop referencing the old Converter class in PropertyExpression

TheLimeGlass opened this issue ยท 2 comments

commented

Suggestion

Stop referencing the old Converter class in PropertyExpression

protected T[] get(final F[] source, final ch.njol.skript.classes.Converter<? super F, ? extends T> converter) {

This restricts the usage of method references Block::getExample by using the old converter class giving an IDE warning about using deprecated classes.

Why?

To enforce the method reference code standard by resolving the class deprecation versioning.

Other

No response

Agreement

  • I have read the guidelines above and affirm I am following them with this suggestion.
commented

It currently uses the old classes for compatibility reasons, see #5507

commented

It currently uses the old classes for compatibility reasons, see #5507

Yes, but it needs to be replaced/overloaded with another method or finally removed.