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

support check org.apache.commons.beanutils.BeanUtils.copyProperties #589

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

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