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

Ianagius 448 #453

Merged
merged 6 commits into from Nov 6, 2016
Merged

Ianagius 448 #453

merged 6 commits into from Nov 6, 2016

Conversation

bartoszwalacik
Copy link
Member

No description provided.

boolean hasTransientAnn = field.hasAnyAnnotation(annotationNamesProvider.getTransientAliases());
boolean hasShallowReferenceAnn = field.hasAnyAnnotation(annotationNamesProvider.getShallowReferenceAliases());
propertyList.add(new Property(field, hasTransientAnn, hasShallowReferenceAnn));
if (ignoreDeclaredPropertiesAnnotation != null) {
Copy link
Member Author

Choose a reason for hiding this comment

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

this is wrong, it means that when @IgnoreDeclaredProperties is present -- all properties will be ignored

abstract class PropertyScanner {
abstract public PropertyScan scan(Class<?> managedClass, boolean ignoreDeclaredProperties);

public PropertyScan scan(Class<?> managedClass, ClassAnnotationsScan classScan) {
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure if PropertyScanner should be aware of ClassAnnotationsScan. Is it not an unnecessary coupling? The only information needed here is whether declared properties should be ignored.

Copy link
Member Author

Choose a reason for hiding this comment

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

ok, will fix it

@bartoszwalacik bartoszwalacik merged commit 7eeca20 into master Nov 6, 2016
@bartoszwalacik bartoszwalacik deleted the ianagius-448 branch November 6, 2016 17:24
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.

None yet

2 participants