Use Objects.checkIndex for boundary checking

1 job for use_objects_checkindex in 1 minute and 33 seconds (queued for 6 seconds)
Name Stage Failure
build Test

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.

BUILD FAILED in 1m 14s
31 actionable tasks: 31 executed
Cleaning up file based variables
ERROR: Job failed: exit code 1