Fix Eclipse compiler warnings

I've split the various fixes into separate commits to illustrate why/how I fixed certain warnings.
Generally I totally agree with you. In this case, however, adding `@SuppressWarnings` on the class level is the only way to get rid of all deprecation warnings in `TestClass` because its superclass `Assert` is deprecated on the class-level.