From effd79984f238046bddbc71923a5ca6afe8f53d8 Mon Sep 17 00:00:00 2001 From: Mike Tinkers Date: Fri, 2 Oct 2026 19:05:37 -0500 Subject: [PATCH] Add tracking file for JodaTime to java.time.* migration progress --- JodaTime_References_Tracking.txt | 67 ++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 JodaTime_References_Tracking.txt diff --git a/JodaTime_References_Tracking.txt b/JodaTime_References_Tracking.txt new file mode 100644 index 00000000..5bf78644 --- /dev/null +++ b/JodaTime_References_Tracking.txt @@ -0,0 +1,67 @@ +# JodaTime to java.time.* Migration Tracking + +## Overview +This file tracks the remaining JodaTime references that need to be migrated to java.time.* in the Magicbane Server codebase. + +## Current Status (as of 2026-10-02) +Branch: ai-refactor-jodatimeFull + +## Files with JodaTime References (Total: 30 files) + +### Files Already Migrated or Partially Migrated +1. ArcMineWindowAvailableTimeMsg.java - ✅ COMPLETE (already using java.time.*) + +### Files to be Migrated +1. BaneRecord.java - [ ] +2. dbBaneHandler.java - [ ] +3. dbBuildingHandler.java - [ ] +4. dbGuildHandler.java - [ ] +5. dbMobHandler.java - [ ] +6. dbNPCHandler.java - [ ] +7. dbShrineHandler.java - [ ] +8. dbWarehouseHandler.java - [ ] +9. GuildManager.java - [ ] +10. BaneDefaultTimeJob.java - [ ] +11. ByteBufferWriter.java - [ ] +12. AcceptInviteToGuildHandler.java - [ ] +13. BanishUnbanishHandler.java - [ ] +14. ManageCityAssetMsgHandler.java - [ ] +15. PlaceAssetMsgHandler.java - [ ] +16. GuildInfoMsg.java - [ ] +17. ManageCityAssetsMsg.java - [ ] +18. ManageNPCMsg.java - [ ] +19. NetMsgFactory.java - [ ] +20. Bane.java - [ ] +21. Guild.java - [ ] +22. GuildHistory.java - [ ] +23. ItemFactory.java - [ ] +24. Mob.java - [ ] +25. NPC.java - [ ] +26. PlayerCharacter.java - [ ] +27. ProducedItem.java - [ ] +28. Transaction.java - [ ] +29. Warehouse.java - [ ] + +## Migration Strategy +1. Analyze each file to understand JodaTime usage patterns +2. Replace imports with java.time equivalents +3. Update variable declarations and method calls +4. Ensure network packet compatibility is maintained +5. Test functionality after each change + +## Progress Tracking Template +For each file, mark as complete when migration is finished: +- [x] File name - Status: COMPLETED (Date: YYYY-MM-DD) +- [ ] File name - Status: PENDING + +## Migration Notes +- Focus on minimal changes to maintain compatibility +- Preserve existing network packet serialization format +- Use java.time classes for better performance and thread safety +- Test each migration in a controlled environment + +## Next Steps +1. Start with files that have minimal dependencies (like ArcMineWindowAvailableTimeMsg) +2. Proceed systematically through the list +3. Create detailed migration plans for complex files +4. Test changes in-game after each migration \ No newline at end of file