Fix Eclipse compiler warnings

I've split the various fixes into separate commits to illustrate why/how I fixed certain warnings.
Yeah, this is fine