Replace Validate
checks from commons-lang
with Preconditions
checks from Guava
#3586
Labels
good first issue
This is an Issue that may be easy to fix if you are a beginner
🔧 Technical Thread
This Issue is a technical Thread where developers can discuss technical changes to Slimefun.
See #3585 for context.
In MC 1.19 Spigot has removed
commons-lang
from its dependencies.We really shouldn't be shading this library just for this one feature and instead switch to what Spigot uses.
So any
Validate.notNull(x, msg)
will becomePreconditions.checkNotNull(x, msg)
and anyValidate.isTrue(x, msg)
shall becomePreconditions.checkArgument(x, msg)
.It would be really helpful if somebody could make a pull request for this and remove
commons-lang
from ourpom.xml
.The text was updated successfully, but these errors were encountered: