Fix Eclipse compiler warnings

I've split the various fixes into separate commits to illustrate why/how I fixed certain warnings.
Maybe we should have just deprecated the methods in `Assert` instead of the whole class, but I think that ship has sailed :-)