remove Java legacies