summaryrefslogtreecommitdiffstats
path: root/srv6/srv6-impl/src/main/java/io/fd
diff options
context:
space:
mode:
authorMichal Cmarada <michal.cmarada@pantheon.tech>2018-06-21 11:23:52 +0200
committerMarek Gradzki <mgradzki@cisco.com>2018-06-22 10:54:33 +0000
commit942aecbb35a6ee1cfb27eb6ae293b6baa4de9148 (patch)
tree00ec98a087099a7ea0961dd936c63573e66a6c13 /srv6/srv6-impl/src/main/java/io/fd
parent4e8127d8f74726b2ffdf8af89ae879cfa79466f6 (diff)
hide Srv6Util constructor in SRv6 module
Hide default constructor to prevent creating instance of Srv6Util class. Change-Id: I805ce1971883426d8df3d9ce6eac2e5bd6ce201a Signed-off-by: Michal Cmarada <michal.cmarada@pantheon.tech>
Diffstat (limited to 'srv6/srv6-impl/src/main/java/io/fd')
-rw-r--r--srv6/srv6-impl/src/main/java/io/fd/hc2vpp/srv6/util/Srv6Util.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/srv6/srv6-impl/src/main/java/io/fd/hc2vpp/srv6/util/Srv6Util.java b/srv6/srv6-impl/src/main/java/io/fd/hc2vpp/srv6/util/Srv6Util.java
index ea308efcf..2778a926d 100644
--- a/srv6/srv6-impl/src/main/java/io/fd/hc2vpp/srv6/util/Srv6Util.java
+++ b/srv6/srv6-impl/src/main/java/io/fd/hc2vpp/srv6/util/Srv6Util.java
@@ -30,6 +30,9 @@ import org.opendaylight.yangtools.yang.binding.DataObject;
import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
public final class Srv6Util {
+ private Srv6Util() {
+ throw new UnsupportedOperationException("Creating Srv6Util instance is not allowed.");
+ }
/**
* Constructs unique name for candidate path based on binding sid and weight