summaryrefslogtreecommitdiffstats
path: root/infra/translate-utils/src
diff options
context:
space:
mode:
authorMarek Gradzki <mgradzki@cisco.com>2017-11-22 11:17:15 +0100
committerMarek Gradzki <mgradzki@cisco.com>2017-11-22 11:17:17 +0100
commit0827063002d7fc50b787f1e5f6bbbbdc09802787 (patch)
treed3eb2daea6d3ef1491c8f6be88c7b20cdad8f30d /infra/translate-utils/src
parent564ba4dc10dcde369ee4f76055c1bd8ab6cfbad9 (diff)
Add missing @Override annotations
Fix isses reported by Sonar thanks to IntelliJ's code inspection. Change-Id: Ief7b4307d4b90e107f010d7feaa307776afaf947 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'infra/translate-utils/src')
-rw-r--r--infra/translate-utils/src/main/java/io/fd/honeycomb/translate/util/read/DelegatingReader.java10
-rw-r--r--infra/translate-utils/src/main/java/io/fd/honeycomb/translate/util/read/KeepaliveReaderWrapper.java1
2 files changed, 9 insertions, 2 deletions
diff --git a/infra/translate-utils/src/main/java/io/fd/honeycomb/translate/util/read/DelegatingReader.java b/infra/translate-utils/src/main/java/io/fd/honeycomb/translate/util/read/DelegatingReader.java
index 513639610..a0cee9295 100644
--- a/infra/translate-utils/src/main/java/io/fd/honeycomb/translate/util/read/DelegatingReader.java
+++ b/infra/translate-utils/src/main/java/io/fd/honeycomb/translate/util/read/DelegatingReader.java
@@ -36,23 +36,27 @@ public interface DelegatingReader<D extends DataObject, B extends Builder<D>> ex
Reader<D, B> getDelegate();
+ @Override
@Nonnull
default Optional<? extends DataObject> read(@Nonnull final InstanceIdentifier<? extends DataObject> id,
@Nonnull final ReadContext ctx) throws ReadFailedException {
return getDelegate().read(id, ctx);
}
+ @Override
default void readCurrentAttributes(@Nonnull final InstanceIdentifier<D> id,
- @Nonnull final B builder,
- @Nonnull final ReadContext ctx) throws ReadFailedException {
+ @Nonnull final B builder,
+ @Nonnull final ReadContext ctx) throws ReadFailedException {
getDelegate().readCurrentAttributes(id, builder, ctx);
}
+ @Override
@Nonnull
default B getBuilder(final InstanceIdentifier<D> id) {
return getDelegate().getBuilder(id);
}
+ @Override
default void merge(@Nonnull final Builder<? extends DataObject> parentBuilder,
@Nonnull final D readValue) {
getDelegate().merge(parentBuilder, readValue);
@@ -63,6 +67,7 @@ public interface DelegatingReader<D extends DataObject, B extends Builder<D>> ex
return getDelegate().isPresent(id, built, ctx);
}
+ @Override
@Nonnull
default InstanceIdentifier<D> getManagedDataObjectType() {
return getDelegate().getManagedDataObjectType();
@@ -74,6 +79,7 @@ public interface DelegatingReader<D extends DataObject, B extends Builder<D>> ex
interface DelegatingListReader<D extends DataObject & Identifiable<K>, K extends Identifier<D>, B extends Builder<D>>
extends DelegatingReader<D, B>, ListReader<D, K, B> {
+ @Override
ListReader<D, K, B> getDelegate();
@Override
diff --git a/infra/translate-utils/src/main/java/io/fd/honeycomb/translate/util/read/KeepaliveReaderWrapper.java b/infra/translate-utils/src/main/java/io/fd/honeycomb/translate/util/read/KeepaliveReaderWrapper.java
index 9a695a53c..b4d8be495 100644
--- a/infra/translate-utils/src/main/java/io/fd/honeycomb/translate/util/read/KeepaliveReaderWrapper.java
+++ b/infra/translate-utils/src/main/java/io/fd/honeycomb/translate/util/read/KeepaliveReaderWrapper.java
@@ -122,6 +122,7 @@ public final class KeepaliveReaderWrapper<D extends DataObject, B extends Builde
@Override
public <T extends DataObject> void put(final InstanceIdentifier<T> path, final T data) {}
+ @Override
public void close() {}
}