Closed Trip-kun closed 7 months ago
The modifications across various Java files and the Dockerfile represent a refactoring effort that simplifies control flow by replacing complex while loops with single method calls to loadTable
. This change streamlines exception handling and improves code readability. The Dockerfile adjustment removes specific memory allocation flags, potentially to allow the container to manage memory more dynamically.
File Path | Change Summary |
---|---|
Dockerfile |
Modified ENTRYPOINT to remove memory allocation flags. |
.../entities/ChannelData.java |
Added Nullable import and new loadTable method. |
.../managers/MariaManager.java |
Updated saveChannelData method to use loadTable and added release method. |
.../runnable/DoubleDownBlackjack.java .../runnable/GetTable.java .../runnable/HitBlackjack.java .../runnable/InsureBlackjack.java .../runnable/Insuring.java .../runnable/JoinTable.java .../runnable/NewTable.java .../runnable/SplitBlackjack.java .../runnable/StandBlackjack.java .../runnable/TableUpdate.java .../runnable/TimeoutBlackjackTable.java |
Replaced while loops with loadTable method calls to simplify logic. |
.../runnable/TableUpdate.java |
Simplified table loading logic, removed redundant variables, and restructured try block. |
🐇✨
In the land of code where loops entwine,
A rabbit hopped through, refactoring with design.
No more spirals of endless wait,
Just a single hop to load the state.
🌟🐾
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Updated the Table system to be more consistent, and fixed the bug in MariaManager that causes the entire program to lock up :)
Summary by CodeRabbit
Performance Improvements
New Features
Refactor
Bug Fixes
Maintenance