Fixed Java warnings