Resolves some java warnings