public Inclusion getInclusion(final DiffNode node) { final ObjectDiffProperty propertyAnnotation = node.getPropertyAnnotation(ObjectDiffProperty.class); if (propertyAnnotation != null) { if (propertyAnnotation.inclusion() == INCLUDED || propertyAnnotation.inclusion() == EXCLUDED) { return propertyAnnotation.inclusion(); } else if (propertyAnnotation.excluded()) { return EXCLUDED; } } else if (hasIncludedSibling(node)) { return EXCLUDED; } return DEFAULT; }
final ObjectDiffProperty objectDiffProperty = node.getPropertyAnnotation(ObjectDiffProperty.class); final ComparisonStrategy comparisonStrategyFromObjectDiffPropertyAnnotation = comparisonStrategyResolver.comparisonStrategyForAnnotation(objectDiffProperty); if (comparisonStrategyFromObjectDiffPropertyAnnotation != null)
final ObjectDiffProperty objectDiffProperty = node.getPropertyAnnotation(ObjectDiffProperty.class); final ComparisonStrategy comparisonStrategyFromObjectDiffPropertyAnnotation = comparisonStrategyResolver.comparisonStrategyForAnnotation(objectDiffProperty); if (comparisonStrategyFromObjectDiffPropertyAnnotation != null)
public Inclusion getInclusion(final DiffNode node) { final ObjectDiffProperty propertyAnnotation = node.getPropertyAnnotation(ObjectDiffProperty.class); if (propertyAnnotation != null) { if (propertyAnnotation.inclusion() == INCLUDED || propertyAnnotation.inclusion() == EXCLUDED) { return propertyAnnotation.inclusion(); } else if (propertyAnnotation.excluded()) { return EXCLUDED; } } else if (hasIncludedSibling(node)) { return EXCLUDED; } return DEFAULT; }