resolved Java warnings