Remove an unneded exception 49/97149/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 17 Aug 2021 19:56:39 +0000 (21:56 +0200)
committerRobert Varga <nite@hq.sk>
Tue, 17 Aug 2021 20:17:22 +0000 (20:17 +0000)
There is no point in guarding private constructors, just add a comment.

Change-Id: I1ecd2557fa9ebbf9ece4c87e6818934b4f66ed18
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 6b380f0f5feb2afda551c718e6135c53b9c7cbe3)

aaa-authn-api/src/main/java/org/opendaylight/aaa/api/IDMStoreUtil.java

index d7d15a5c03065593c64116b798627af005be4faa..a8745e896c5886a1d4b3537a3da1c9ffaf092d68 100644 (file)
@@ -7,8 +7,6 @@
  */
 package org.opendaylight.aaa.api;
 
-import javax.naming.OperationNotSupportedException;
-
 /**
  *  This class is a utility to construct the different elements keys for the different data stores.
  *  For not making mistakes around the code constructing an element key, this class standardize the
@@ -17,9 +15,8 @@ import javax.naming.OperationNotSupportedException;
  *  @author - Sharon Aicler (saichler@cisco.com)
  */
 public final class IDMStoreUtil {
-
-    private IDMStoreUtil() throws OperationNotSupportedException {
-        throw new OperationNotSupportedException();
+    private IDMStoreUtil() {
+        // Hidden on purpose
     }
 
     public static String createUserid(String username, String domainid) {