summaryrefslogtreecommitdiffstats
path: root/infra
diff options
context:
space:
mode:
authorMarek Gradzki <mgradzki@cisco.com>2018-08-13 07:30:20 +0200
committerMarek Gradzki <mgradzki@cisco.com>2018-08-13 07:30:27 +0200
commit3f83dcd99493cb796b1d341737cea23ce9d2c093 (patch)
tree44c2c499b62b17fc1e96c3d5f23dd23da57e5120 /infra
parent67f70e846d6b27e219606e687c06c75527f184a5 (diff)
Hide TranslationUtil's constructor
Utility classes should not be instantiated. Change-Id: Iff821556ad6b593bce6b3e056241dc7e2bbe0c8b Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'infra')
-rw-r--r--infra/notification/impl/src/main/java/io/fd/honeycomb/notification/impl/TranslationUtil.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/infra/notification/impl/src/main/java/io/fd/honeycomb/notification/impl/TranslationUtil.java b/infra/notification/impl/src/main/java/io/fd/honeycomb/notification/impl/TranslationUtil.java
index 9ba43fa0e..c18020fb3 100644
--- a/infra/notification/impl/src/main/java/io/fd/honeycomb/notification/impl/TranslationUtil.java
+++ b/infra/notification/impl/src/main/java/io/fd/honeycomb/notification/impl/TranslationUtil.java
@@ -38,7 +38,9 @@ import org.opendaylight.yangtools.yang.data.codec.xml.XMLStreamNormalizedNodeStr
public final class TranslationUtil {
- public TranslationUtil() {}
+ private TranslationUtil() {
+ throw new UnsupportedOperationException("Utility class cannot be instantiated.");
+ }
private static final Logger LOG = LoggerFactory.getLogger(TranslationUtil.class);
private static final XMLOutputFactory XML_FACTORY;