JERSEY-2471: Eliminate some javac type cast warnings

 - fixed copyrights & some minor issues

Change-Id: I71c6a160985d7d4a99e8e1d550632ae2393bf731
Signed-off-by: Michal Gajdos <michal.gajdos@oracle.com>