r/java • • Apr 27 '26

Avoiding Final Field Mutation

https://inside.java/2026/04/27/avoiding-final-field-mutation/
51 Upvotes

36 comments sorted by

View all comments

Show parent comment

1

u/khmarbaise May 02 '26

Yes of course in the first place but after having tests you can refactor to make a the code better and later remove powermock...