DataX icon indicating copy to clipboard operation
DataX copied to clipboard

Configuration类checkPath方法问题

Open SalomonQiu opened this issue 1 year ago • 0 comments

com.alibaba.datax.common.util.Configuration类中的checkPath如下: private void checkPath(final String path) { if (null == path) { throw new IllegalArgumentException( "系统编程错误, 该异常代表系统编程错误, 请联系DataX开发团队!."); }

for (final String each : StringUtils.split(".")) {
	if (StringUtils.isBlank(each)) {
		throw new IllegalArgumentException(String.format(
				"系统编程错误, 路径[%s]不合法, 路径层次之间不能出现空白字符 .", path));
	}
}

} 我有个疑问,其中for循环中的StringUtils.split(".")是不是不对,path没起到任何作用!

SalomonQiu avatar Jan 20 '25 03:01 SalomonQiu