Skip to content

Some Enhancements and Refactoring#12440

Closed
xcutiboo wants to merge 1 commit into
PaperMC:mainfrom
xcutiboo:main
Closed

Some Enhancements and Refactoring#12440
xcutiboo wants to merge 1 commit into
PaperMC:mainfrom
xcutiboo:main

Conversation

@xcutiboo
Copy link
Copy Markdown

This pull request includes significant changes to various files to enhance code maintainability, performance, and documentation. The changes include the addition of utility methods for bit manipulation, improvements to the rate limiter, and detailed JavaDoc comments for better code understanding.

Enhancements and Refactoring:

  • paper-server/src/main/java/io/papermc/paper/antixray/BitManipulationUtil.java: Introduced a new utility class for common bit manipulation operations to reduce code duplication and improve maintainability.
  • paper-server/src/main/java/io/papermc/paper/antixray/BitStorageReader.java and paper-server/src/main/java/io/papermc/paper/antixray/BitStorageWriter.java: Refactored to use the new BitManipulationUtil methods for reading and writing long values from/to byte arrays and creating bit masks. [1] [2] [3] [4] [5] [6]

Performance Improvements:

Documentation Improvements:

Method Improvements:

@xcutiboo xcutiboo requested a review from a team as a code owner April 15, 2025 07:30
@github-project-automation github-project-automation Bot moved this to Awaiting review in Paper PR Queue Apr 15, 2025
@github-actions
Copy link
Copy Markdown

Please do not open pull requests from the main branch, create a new branch instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

1 participant