* Remove unused imports.
* Add "final" for unmodified values
Fix NetBeans warning (unmodifiable set, use of "++i" as index for an array)