summaryrefslogtreecommitdiffstats
path: root/infra/translate-api/src/main/java/io/fd
diff options
context:
space:
mode:
authorMarek Gradzki <mgradzki@cisco.com>2017-01-09 08:23:45 +0100
committerMarek Gradzki <mgradzki@cisco.com>2017-01-10 07:41:32 +0000
commit98666a011d7538ac9742a8351856f76fbe7d8e69 (patch)
tree1b955cd53a0a78eefb9e1c04413fd3f7dd0b6b9a /infra/translate-api/src/main/java/io/fd
parent75f0efb8b1aff9e9be8d222fd90d1df7ce542bbc (diff)
HONEYCOMB-331: unify initialization handling
Due to incorrect instance of check, InitSubtreeReader was never created in CompositeReaderRegistryBuilder.getSubtreeHandler(). As a consequence, initializers registered by subtreeAdd*, were not invoked. The patch: - fixes mentioned check, - makes readers implement InitReader instead of directly implementing Initializer - includes missing unit tests for GenericReaders. Change-Id: I93be59fafddb60dce00191958b5c8c62e7c2d289 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'infra/translate-api/src/main/java/io/fd')
-rw-r--r--infra/translate-api/src/main/java/io/fd/honeycomb/translate/read/InitListReader.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/infra/translate-api/src/main/java/io/fd/honeycomb/translate/read/InitListReader.java b/infra/translate-api/src/main/java/io/fd/honeycomb/translate/read/InitListReader.java
index a7d3ee2ac..f137aacaa 100644
--- a/infra/translate-api/src/main/java/io/fd/honeycomb/translate/read/InitListReader.java
+++ b/infra/translate-api/src/main/java/io/fd/honeycomb/translate/read/InitListReader.java
@@ -27,5 +27,5 @@ import org.opendaylight.yangtools.yang.binding.Identifier;
*/
@Beta
public interface InitListReader<O extends DataObject & Identifiable<K>, K extends Identifier<O>, B extends Builder<O>>
- extends ListReader<O, K, B>, Initializer<O> {
+ extends ListReader<O, K, B>, InitReader<O, B> {
}