The class VisionServiceRestClient uses a utility class TextUtils from android to convert a String[] to a String using a delimiter. However this makes it difficult to use this Java API outside of Android. If you could change it to use String.join(delimiter, array) this would remove the dependency of the client on Android libraries. However String.join is available only on Java 8 and above, so using Apache Common's StringUtils.join would be a better approach.
The class VisionServiceRestClient uses a utility class TextUtils from android to convert a String[] to a String using a delimiter. However this makes it difficult to use this Java API outside of Android. If you could change it to use String.join(delimiter, array) this would remove the dependency of the client on Android libraries. However String.join is available only on Java 8 and above, so using Apache Common's StringUtils.join would be a better approach.
Thanks, Sushil