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

448 Add @IgnoreDeclaredProperties annotation #452

merged 1 commit into from Nov 6, 2016


Copy link

@ianagius ianagius commented Oct 28, 2016

Add @IgnoreDeclaredProperties to classes to ignore all their properties.
If a class is annotated with @IgnoreDeclaredProperties and is part of an audited hierarchy, only the properties of the class are ignored, and JaVers will still track any other properties in the class hierarchy.
By contrast, if a class is annotated with @DiffIgnore JaVers will ignore all instances of that class.

@@ -20,14 +21,22 @@ public FieldBasedPropertyScanner(AnnotationNamesProvider annotationNamesProvider

public PropertyScan scan(Class<?> managedClass) {
final IgnoreDeclaredProperties ignoreDeclaredPropertiesAnnotation = managedClass.getAnnotation(IgnoreDeclaredProperties.class);

This comment has been minimized.


bartoszwalacik Nov 5, 2016

annotations scanning should be done in ClassScan. I'll fix it

Copy link

@bartoszwalacik bartoszwalacik commented Nov 5, 2016

your impl is wrong, all properties are ignored. Only declared properties should be ignored when new ann is present.
moved this thread to #453 to fix it

@bartoszwalacik bartoszwalacik merged commit 62c7a8a into javers:master Nov 6, 2016
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
@ianagius ianagius deleted the ianagius:448 branch Nov 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants