diff options
author | Maros Marsalek <mmarsale@cisco.com> | 2016-09-12 13:48:48 +0200 |
---|---|---|
committer | Marek Gradzki <mgradzki@cisco.com> | 2016-09-13 06:59:58 +0000 |
commit | e7a8d81ce8ba43384b42a98b0ded5769e89fe1be (patch) | |
tree | 446022c0315659badd20aa0b32a9c5081f017bf8 /infra/translate-api/src/main/java | |
parent | 93fee83a1cd43313379d63e56ac8fb9c890ba832 (diff) |
HONEYCOMB-194 Raise test coverage for translate-api to 80%
Change-Id: I6f055ae926aaf876863adb7eddadde0abefdda91
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Diffstat (limited to 'infra/translate-api/src/main/java')
-rw-r--r-- | infra/translate-api/src/main/java/io/fd/honeycomb/translate/TranslationException.java | 10 | ||||
-rw-r--r-- | infra/translate-api/src/main/java/io/fd/honeycomb/translate/write/DataObjectUpdate.java | 5 |
2 files changed, 7 insertions, 8 deletions
diff --git a/infra/translate-api/src/main/java/io/fd/honeycomb/translate/TranslationException.java b/infra/translate-api/src/main/java/io/fd/honeycomb/translate/TranslationException.java index 6037391e2..1aef7d01c 100644 --- a/infra/translate-api/src/main/java/io/fd/honeycomb/translate/TranslationException.java +++ b/infra/translate-api/src/main/java/io/fd/honeycomb/translate/TranslationException.java @@ -19,17 +19,17 @@ package io.fd.honeycomb.translate; import com.google.common.annotations.Beta; /** - * Base exception for the translation layer + * Base exception for the translation layer. */ @Beta public class TranslationException extends Exception { - public TranslationException(final String s) { - super(s); + public TranslationException(final String message) { + super(message); } - public TranslationException(final String s, final Throwable cause) { - super(s, cause); + public TranslationException(final String message, final Throwable cause) { + super(message, cause); } public TranslationException(final Throwable cause) { diff --git a/infra/translate-api/src/main/java/io/fd/honeycomb/translate/write/DataObjectUpdate.java b/infra/translate-api/src/main/java/io/fd/honeycomb/translate/write/DataObjectUpdate.java index e76d76fcd..583c7b781 100644 --- a/infra/translate-api/src/main/java/io/fd/honeycomb/translate/write/DataObjectUpdate.java +++ b/infra/translate-api/src/main/java/io/fd/honeycomb/translate/write/DataObjectUpdate.java @@ -57,8 +57,8 @@ public class DataObjectUpdate { } public static DataObjectUpdate create(@Nonnull final InstanceIdentifier<?> id, - @Nullable final DataObject dataBefore, - @Nullable final DataObject dataAfter) { + @Nullable final DataObject dataBefore, + @Nullable final DataObject dataAfter) { checkArgument(!(dataBefore == null && dataAfter == null), "Both before and after data are null"); if (dataBefore != null) { checkArgument(id.getTargetType().isAssignableFrom(dataBefore.getClass())); @@ -84,7 +84,6 @@ public class DataObjectUpdate { final DataObjectUpdate that = (DataObjectUpdate) o; return id.equals(that.id); - } @Override |