Instance variables to Local variables w/o breaking the functional flow, can copilot help? #121756
Replies: 1 comment
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Question
We have a huge monolithic Spring Java codebase which has a lot of class variables defined in the Java classes (Spring Beans)
Since these class variables are not threadsafe, we see a lot of concurrency issues in the applications and batch jobs, as there are complex functional flows built using these variables.
Question: Since above is a widespread problem in the code, where we have thousands of class files and over 250 thousand lines of code. Can AI/Github Copilot help convert Instance variables to Local variables without breaking the functional flows built using these variables in multiple functions? If yes, how should we approach this?
If anyone has attempted to fix similar kind of problem, please share your experience.
Beta Was this translation helpful? Give feedback.
All reactions