Skip to content

Fix checkstyle

Fix checkstyle #1915

Triggered via push September 20, 2026 15:14
Status Success
Total duration 4m 18s
Artifacts 2

ci.yaml

on: push
Matrix: call-build / build
Fit to window
Zoom out
Zoom in

Annotations

10 warnings and 1 notice
call-build / build (ubuntu-latest): src/test/java/org/spongepowered/api/util/weighted/RiggedRandom.java#L34
[serial] non-transient instance field of a serializable class declared with a non-serializable type
call-build / build (ubuntu-latest): src/main/java/org/spongepowered/api/event/impl/entity/AbstractDamageCalculationEventPre.java#L47
[JdkObsolete] It is very rare for LinkedList to out-perform ArrayList or ArrayDeque. Avoid it unless you're willing to invest a lot of time into benchmarking. Caveat: LinkedList supports null elements, but ArrayDeque does not.
call-build / build (ubuntu-latest): src/main/java/org/spongepowered/api/event/impl/entity/AbstractDamageCalculationEventPre.java#L43
[JdkObsolete] It is very rare for LinkedList to out-perform ArrayList or ArrayDeque. Avoid it unless you're willing to invest a lot of time into benchmarking. Caveat: LinkedList supports null elements, but ArrayDeque does not.
call-build / build (ubuntu-latest): src/main/java/org/spongepowered/api/event/BiGenericEvent.java#L46
[MissingOverride] paramTypes implements method in GenericEvent; expected @OverRide
call-build / build (ubuntu-latest): src/main/java/org/spongepowered/api/data/DataProvider.java#L156
[TypeNameShadowing] Found type parameters shadowing other declared types:
call-build / build (ubuntu-latest): src/main/java/org/spongepowered/api/data/DataProvider.java#L152
[TypeNameShadowing] Found type parameters shadowing other declared types:
call-build / build (ubuntu-latest): src/main/java/org/spongepowered/api/registry/Registry.java#L145
[TypeParameterUnusedInFormals] Declaring a type parameter that is only used in the return type is a misuse of generics: operations on the type parameter are unchecked, it hides unsafe casts at invocations of the method, and it interacts badly with method overload resolution.
call-build / build (ubuntu-latest): src/main/java/org/spongepowered/api/registry/Registry.java#L122
[TypeParameterUnusedInFormals] Declaring a type parameter that is only used in the return type is a misuse of generics: operations on the type parameter are unchecked, it hides unsafe casts at invocations of the method, and it interacts badly with method overload resolution.
call-build / build (ubuntu-latest): src/main/java/org/spongepowered/api/data/type/ItemAction.java#L78
[varargs] Varargs method could cause heap pollution from non-reifiable varargs parameter effectTypes
call-build / build (ubuntu-latest): src/main/java/org/spongepowered/api/util/ComponentMessageException.java#L41
[serial] non-transient instance field of a serializable class declared with a non-serializable type
call-build / build (ubuntu-latest)
"The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see https://github.com/actions/runner-images/issues/14748"

Artifacts

Produced during runtime
Name Size Digest
Linux-test-results
75.9 KB
sha256:ee5525052368502150f188529008beb39b8c3cf54ab2bad7422c7e9ba653d12d
Windows-test-results
75.8 KB
sha256:7a59d5d3e9acb48a685f1ac1931aa9abbeee4882883e7ce1c2953baae163d1f1