Remove unused singleton code 14/61714/3
authorRyan Goulding <ryandgoulding@gmail.com>
Mon, 14 Aug 2017 19:02:02 +0000 (15:02 -0400)
committerRyan Goulding <ryandgoulding@gmail.com>
Mon, 21 Aug 2017 12:49:20 +0000 (12:49 +0000)
CredentialServiceAuthProvider is not a singleton.  This removes
the INSTANCE Map since it is unused and confusing.

Change-Id: Ie20d923e7257991bbf97739fc067fd21d26790f5
Signed-off-by: Ryan Goulding <ryandgoulding@gmail.com>
netconf/aaa-authn-odl-plugin/src/main/java/org/opendaylight/aaa/odl/CredentialServiceAuthProvider.java

index 19e72dfe08bf9aec4d1397b085a3271e8e1de2df..3d86ee1751adfd5037c8c369a42124e4a3f0f442 100644 (file)
@@ -7,7 +7,6 @@
  */
 package org.opendaylight.aaa.odl;
 
-import java.util.Map;
 import org.opendaylight.aaa.api.AuthenticationException;
 import org.opendaylight.aaa.api.Claim;
 import org.opendaylight.aaa.api.CredentialAuth;
@@ -27,11 +26,6 @@ import org.slf4j.LoggerFactory;
 public final class CredentialServiceAuthProvider implements AuthProvider, AutoCloseable {
     private static final Logger LOG = LoggerFactory.getLogger(CredentialServiceAuthProvider.class);
 
-    /**
-     * Singleton instance with delayed instantiation.
-     */
-    public static volatile Map.Entry<BundleContext, CredentialServiceAuthProvider> INSTANCE;
-
     // FIXME CredentialAuth is generic and it causes warnings during compilation
     // Maybe there should be a PasswordCredentialAuth implements CredentialAuth<PasswordCredentials>
     private volatile CredentialAuth<PasswordCredentials> nullableCredService;