[java-client] Remove dependency on Scala standard library.