Java warnings fixed.