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

java基本类型boolean比较有问题,只有ADD或者DELETE。其中EDIT出现不了 #211

Open
liflife opened this issue Apr 20, 2020 · 1 comment

Comments

@liflife
Copy link

liflife commented Apr 20, 2020

当java类中有boolean类型的时候,两类做比较应该是edit才对,实际是add或者DELETE

@syzsh
Copy link

syzsh commented Jun 15, 2022

看下这个枚举的说明: PrimitiveDefaultValueMode.ASSIGNED, 可以通过如下方法修改默认值:

ObjectDifferBuilder.startBuilding()
                .comparison().ofPrimitiveTypes().toTreatDefaultValuesAs(PrimitiveDefaultValueMode.ASSIGNED).and()
                .build();

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

2 participants