[upnpcontrol] Multiple codestyle fixes (#14451)

Signed-off-by: lsiepel <leosiepel@gmail.com>
This commit is contained in:
lsiepel 2023-02-19 21:55:46 +01:00 committed by GitHub
parent b570a454b0
commit 07b8fbe26b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 5 additions and 6 deletions

View File

@ -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;
/**

View File

@ -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());

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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 {
/**