🔥 3-day streak
GitHub Copilot108 / 190
Question 108 of 190
A developer is modernizing a legacy Java service where several classes reference a shared static Singleton `AppConfig.getInstance()` scattered throughout the codebase. This global state makes the classes nearly impossible to unit test in isolation. The team wants Copilot to help refactor toward a testable design while preserving current behavior. Which prompting approach will most effectively guide Copilot to produce the intended modernization?
Reviewed for accuracy · Report an issueNext question