Skip to content

Commit

Permalink
[addon-suggestion-finder] fix git rename bug part 2
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Fiddian-Green <[email protected]>
  • Loading branch information
andrewfg committed Dec 5, 2023
1 parent e11002d commit 2c9669a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,28 +44,28 @@
import org.slf4j.LoggerFactory;

/**
* This is a {@link MDNSAardvarkAddonFinder} for finding suggested add-ons via mDNS.
* This is a {@link MDNSAddonFinder} for finding suggested add-ons via mDNS.
*
* @author Andrew Fiddian-Green - Initial contribution
* @author Mark Herwege - refactor to allow uninstall
*/
@NonNullByDefault
@Component(service = AddonFinder.class, name = MDNSAardvarkAddonFinder.SERVICE_NAME)
public class MDNSAardvarkAddonFinder extends BaseAddonFinder implements ServiceListener {
@Component(service = AddonFinder.class, name = MDNSAddonFinder.SERVICE_NAME)
public class MDNSAddonFinder extends BaseAddonFinder implements ServiceListener {

public static final String SERVICE_TYPE = SERVICE_TYPE_MDNS;
public static final String SERVICE_NAME = SERVICE_NAME_MDNS;

private static final String NAME = "name";
private static final String APPLICATION = "application";

private final Logger logger = LoggerFactory.getLogger(MDNSAardvarkAddonFinder.class);
private final Logger logger = LoggerFactory.getLogger(MDNSAddonFinder.class);
private final ScheduledExecutorService scheduler = ThreadPoolManager.getScheduledPool(SERVICE_NAME);
private final Map<String, ServiceInfo> services = new ConcurrentHashMap<>();
private MDNSClient mdnsClient;

@Activate
public MDNSAardvarkAddonFinder(@Reference MDNSClient mdnsClient) {
public MDNSAddonFinder(@Reference MDNSClient mdnsClient) {
this.mdnsClient = mdnsClient;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
import org.openhab.core.config.discovery.addon.AddonFinder;
import org.openhab.core.config.discovery.addon.AddonFinderConstants;
import org.openhab.core.config.discovery.addon.AddonSuggestionService;
import org.openhab.core.config.discovery.addon.mdns.MDNSAardvarkAddonFinder;
import org.openhab.core.config.discovery.addon.mdns.MDNSAddonFinder;
import org.openhab.core.io.transport.mdns.MDNSClient;

/**
Expand All @@ -47,7 +47,7 @@
*/
@NonNullByDefault
@TestInstance(Lifecycle.PER_CLASS)
public class MDNSAardvarkAddonFinderTests {
public class MDNSAddonFinderTests {

private @NonNullByDefault({}) MDNSClient mdnsClient;
private @NonNullByDefault({}) AddonFinder addonFinder;
Expand All @@ -61,7 +61,7 @@ public void setup() {
}

private void createAddonFinder() {
MDNSAardvarkAddonFinder mdnsAddonFinder = new MDNSAardvarkAddonFinder(mdnsClient);
MDNSAddonFinder mdnsAddonFinder = new MDNSAddonFinder(mdnsClient);
assertNotNull(mdnsAddonFinder);

for (ServiceInfo service : mdnsClient.list("_hue._tcp.local.")) {
Expand Down

0 comments on commit 2c9669a

Please sign in to comment.