refactor some java dependents