java: make fields final where possible

found by PMD

Change-Id: I87780366119c141cd2dafe6ca1bf2d9798b10aec
java: remove some unnecessary casts

Change-Id: I30f316ee87bd8fe4bc56f6e928fb36d3ab0c8e94
java: fix some raw types warnings

Change-Id: I0e00739ac36ccc8704ad3c4e4adfa377a6b01f43
java, wizards: remove unused local variables and fields

Change-Id: I77dfcaae8950397e0f22c9a3e744e744055b6cf3