Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration类checkPath方法问题 #2263

Open
SalomonQiu opened this issue Jan 20, 2025 · 0 comments
Open

Configuration类checkPath方法问题 #2263

SalomonQiu opened this issue Jan 20, 2025 · 0 comments

Comments

@SalomonQiu
Copy link

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没起到任何作用!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant