MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/java/comments/1sx250r/avoiding_final_field_mutation/oj6m9o9/?context=3
r/java • u/daviddel • Apr 27 '26
36 comments sorted by
View all comments
Show parent comment
1
Exactly...
Or you e. g. allocate arrays with the size of a given final static int value. If this value gets modified later on with reflection -> bang!
View all comments
Show parent comment
1
u/Mauer_Bluemchen Apr 30 '26 edited Apr 30 '26
Exactly...
Or you e. g. allocate arrays with the size of a given final static int value. If this value gets modified later on with reflection -> bang!