Remove unneeded service declaration 04/104104/1
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 23 Jan 2023 19:44:29 +0000 (20:44 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 23 Jan 2023 19:44:29 +0000 (20:44 +0100)
OSGiPasswordHashService implements only a single interface, hence the
service can easily be discovered. Remove explicit declaration.

Change-Id: I9892a79df5e7dc2fe6c6c41c66c4cdbda36bdfa9
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
aaa-password-service/impl/src/main/java/org/opendaylight/aaa/impl/password/service/OSGiPasswordHashService.java

index 238b4f6bdaf127dc25d70b88a27ed97ecdfa2b8c..cef8126bfbece40354df85ee458b8e357baef7c8 100644 (file)
@@ -15,7 +15,7 @@ import org.osgi.service.component.annotations.Reference;
 import org.osgi.service.component.annotations.ReferenceCardinality;
 import org.osgi.service.component.annotations.ReferencePolicy;
 
-@Component(immediate = true, service = PasswordHashService.class, property = "type=default")
+@Component(immediate = true, property = "type=default")
 public final class OSGiPasswordHashService implements PasswordHashService {
     private volatile DefaultPasswordHashService delegate = null;