summaryrefslogtreecommitdiffstats
path: root/v3po/translate-impl
diff options
context:
space:
mode:
Diffstat (limited to 'v3po/translate-impl')
-rw-r--r--v3po/translate-impl/src/main/java/io/fd/honeycomb/v3po/translate/impl/read/AbstractCompositeReader.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/v3po/translate-impl/src/main/java/io/fd/honeycomb/v3po/translate/impl/read/AbstractCompositeReader.java b/v3po/translate-impl/src/main/java/io/fd/honeycomb/v3po/translate/impl/read/AbstractCompositeReader.java
index f026d4f92..afd979167 100644
--- a/v3po/translate-impl/src/main/java/io/fd/honeycomb/v3po/translate/impl/read/AbstractCompositeReader.java
+++ b/v3po/translate-impl/src/main/java/io/fd/honeycomb/v3po/translate/impl/read/AbstractCompositeReader.java
@@ -141,10 +141,14 @@ abstract class AbstractCompositeReader<D extends DataObject, B extends Builder<D
LOG.debug("{}: Reading subtree: {}", this, id);
final Class<? extends DataObject> next = RWUtils.getNextId(id, getManagedDataObjectType()).getType();
final ChildReader<? extends ChildOf<D>> reader = childReaders.get(next);
+ final ChildReader<? extends Augmentation<D>> augReader = augReaders.get(next);
if (reader != null) {
LOG.debug("{}: Reading subtree: {} from: {}", this, id, reader);
return reader.read(id, ctx);
+ }if (augReader != null) {
+ LOG.debug("{}: Reading subtree: {} from: {}", this, id, augReader);
+ return augReader.read(id, ctx);
} else {
LOG.debug("{}: Dedicated subtree reader missing for: {}. Reading current and filtering", this, next);
// If there's no dedicated reader, use read current