General Java warning fixes