compiler/java: adding final to some variables