From 3f83dcd99493cb796b1d341737cea23ce9d2c093 Mon Sep 17 00:00:00 2001 From: Marek Gradzki Date: Mon, 13 Aug 2018 07:30:20 +0200 Subject: Hide TranslationUtil's constructor Utility classes should not be instantiated. Change-Id: Iff821556ad6b593bce6b3e056241dc7e2bbe0c8b Signed-off-by: Marek Gradzki --- .../main/java/io/fd/honeycomb/notification/impl/TranslationUtil.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- cgit 1.2.3-korg