Skip to content

Conversation

@WaitingIdly
Copy link
Collaborator

changes in this PR:

  • make a significant number of places use a pattern variable.
  • fix accessoryType validation null check promptly throwing a NPE.
  • sort modifiers so that @NotNull and @Nullable are just before the return type instead of on the line prior.
  • add @Override annotations to methods missing them.
  • replace "".equals(String) with String#isEmpty().
  • use the canonical forms of floats (1.0f instead of 1f).
  • fix a ObjectMapper.Builder having a field with the type TextureBinder instead of TextureBinder<T> when the only way to set it is via calling the method textureBinder(TextureBinder<T>).
  • add a @NotNull annotation to the parameter of a method in the JeiPlugin.
  • suppress ClassCanBeRecord warnings, as we have decided not to use those.
  • suppress unchecked warnings for cases in which the entity class in a RecipeBuilder/removal.

basically all of these are just inspection stuff, with the exception of the fixing an NPE when validating accessoryType.

@brachy84 brachy84 merged commit 4a6cf12 into CleanroomMC:master Dec 12, 2024
@WaitingIdly WaitingIdly deleted the code-adjustment branch December 12, 2024 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants