remove Java warnings