Skip to content

Conversation

@atuowgo
Copy link

@atuowgo atuowgo commented Oct 13, 2019

Fixes #539 .

@CLAassistant
Copy link

CLAassistant commented Oct 13, 2019

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@kerie kerie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

感谢您的代码,麻烦在AvoidApacheBeanUtilsCopyRule.xml补充一下和修改对应的单元测试。

+ "//ImportDeclaration[@ImportedName='org.apache.commons.beanutils.BeanUtils']]";
"//PrimaryPrefix/Name[(@Image='BeanUtils.copyProperties' and "
+ "//ImportDeclaration[@ImportedName='org.apache.commons.beanutils.BeanUtils']) or "
+ "starts-with(@Image,'org.apache.commons.beanutils.BeanUtils.')]";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里改成"starts-with(@Image,'org.apache.commons.beanutils.BeanUtils.copyProperties')]";
目前只限制apache BeanUtils的copyProperties方法。

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已提交

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

Successfully merging this pull request may close these issues.

全限定类名,无法检测

3 participants