One can use such javac options:
-Xlint:all -Xlint:-serial
to prevent this kind of warnings and source code pollution (@SuppressWarnings is for rare situations).
I use (breakfast of champions ;-):
-J -ea -Xlint:all -Xlint:-serial -J -XX:+AggressiveOpts -J -XX:+UseFastAccessorMethods