Closed GoogleCodeExporter closed 8 years ago
"score = augmentScore(.., .., someScore, ..);
after the call the someScore variable would be modified."
No it wouldn't. When a primitive variable is passed into a method, Java copies
that variable. If that copy is modified inside of the method, the original
variable is not modified.
Original comment by mike.angstadt
on 22 Nov 2010 at 2:29
I stand corrected. Should have tested that before reporting :) Thanks.
Original comment by netpr...@gmail.com
on 22 Nov 2010 at 3:21
Original issue reported on code.google.com by
netpr...@gmail.com
on 22 Nov 2010 at 9:31