Skip to content

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

Open
atuowgo wants to merge 3 commits intoalibaba:masterfrom
atuowgo:fix-539
Open

support check org.apache.commons.beanutils.BeanUtils.copyProperties#589
atuowgo wants to merge 3 commits intoalibaba:masterfrom
atuowgo:fix-539

Conversation

@atuowgo
Copy link
Copy Markdown

@atuowgo atuowgo commented Oct 13, 2019

Fixes #539 .

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Oct 13, 2019

CLA assistant check
All committers have signed the CLA.

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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