mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[upnpcontrol] Multiple codestyle fixes (#14451)
Signed-off-by: lsiepel <leosiepel@gmail.com>
This commit is contained in:
parent
b570a454b0
commit
07b8fbe26b
@ -13,7 +13,6 @@
|
||||
package org.openhab.binding.upnpcontrol.internal.audiosink;
|
||||
|
||||
import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||
import org.openhab.binding.upnpcontrol.internal.UpnpControlHandlerFactory;
|
||||
import org.openhab.binding.upnpcontrol.internal.handler.UpnpRendererHandler;
|
||||
|
||||
/**
|
||||
|
@ -84,11 +84,11 @@ public class UpnpControlDiscoveryParticipant implements UpnpDiscoveryParticipant
|
||||
logger.debug("Device type {}, manufacturer {}, model {}, SN# {}, UDN {}", deviceType, manufacturer, model,
|
||||
serialNumber, udn);
|
||||
|
||||
if (deviceType.equalsIgnoreCase("MediaRenderer")) {
|
||||
if ("MediaRenderer".equalsIgnoreCase(deviceType)) {
|
||||
this.logger.debug("Media renderer found: {}, {}", manufacturer, model);
|
||||
ThingTypeUID thingTypeUID = THING_TYPE_RENDERER;
|
||||
result = new ThingUID(thingTypeUID, device.getIdentity().getUdn().getIdentifierString());
|
||||
} else if (deviceType.equalsIgnoreCase("MediaServer")) {
|
||||
} else if ("MediaServer".equalsIgnoreCase(deviceType)) {
|
||||
this.logger.debug("Media server found: {}, {}", manufacturer, model);
|
||||
ThingTypeUID thingTypeUID = THING_TYPE_SERVER;
|
||||
result = new ThingUID(thingTypeUID, device.getIdentity().getUdn().getIdentifierString());
|
||||
|
@ -29,7 +29,6 @@ import java.util.stream.Collectors;
|
||||
import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||
import org.eclipse.jdt.annotation.Nullable;
|
||||
import org.jupnp.model.meta.RemoteDevice;
|
||||
import org.jupnp.registry.RegistryListener;
|
||||
import org.openhab.binding.upnpcontrol.internal.UpnpChannelName;
|
||||
import org.openhab.binding.upnpcontrol.internal.UpnpDynamicCommandDescriptionProvider;
|
||||
import org.openhab.binding.upnpcontrol.internal.UpnpDynamicStateDescriptionProvider;
|
||||
|
@ -41,7 +41,6 @@ import org.jupnp.model.meta.RemoteDevice;
|
||||
import org.openhab.binding.upnpcontrol.internal.UpnpChannelName;
|
||||
import org.openhab.binding.upnpcontrol.internal.UpnpDynamicCommandDescriptionProvider;
|
||||
import org.openhab.binding.upnpcontrol.internal.UpnpDynamicStateDescriptionProvider;
|
||||
import org.openhab.binding.upnpcontrol.internal.audiosink.UpnpAudioSink;
|
||||
import org.openhab.binding.upnpcontrol.internal.audiosink.UpnpAudioSinkReg;
|
||||
import org.openhab.binding.upnpcontrol.internal.config.UpnpControlBindingConfiguration;
|
||||
import org.openhab.binding.upnpcontrol.internal.config.UpnpControlRendererConfiguration;
|
||||
|
@ -32,7 +32,6 @@ import java.util.stream.Collectors;
|
||||
|
||||
import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||
import org.eclipse.jdt.annotation.Nullable;
|
||||
import org.openhab.binding.upnpcontrol.internal.UpnpControlHandlerFactory;
|
||||
import org.openhab.binding.upnpcontrol.internal.UpnpDynamicCommandDescriptionProvider;
|
||||
import org.openhab.binding.upnpcontrol.internal.UpnpDynamicStateDescriptionProvider;
|
||||
import org.openhab.binding.upnpcontrol.internal.config.UpnpControlBindingConfiguration;
|
||||
|
@ -12,11 +12,14 @@
|
||||
*/
|
||||
package org.openhab.binding.upnpcontrol.internal.util;
|
||||
|
||||
import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||
|
||||
/**
|
||||
* The {@link StringUtils} class defines some static string utility methods
|
||||
*
|
||||
* @author Leo Siepel - Initial contribution
|
||||
*/
|
||||
@NonNullByDefault
|
||||
public class StringUtils {
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user