fix some findbugs warnings

- make a constant final
- make an inner class static
- return copy of array