/** * Returns an operating-system-dependent path consisting of the given * elements, separated by {@link File#separator}. * * @param pathElements the path elements from uppermost downwards (can't be * empty) * @return a non-blank string * @since 1.2.0 */ public static String getSystemDependentPath(final String... pathElements) { Validate.notEmpty(pathElements); return getSystemDependentPath(Arrays.asList(pathElements)); }