Declare some variables with final modifier to fix warnings from CheckStyle about magick numbers.

Looks like I removed too many in 91dccc5e500d93bbb0ea6ac6a10388a2fed28bec commit.

No functional changes.