From 83ce9c5005547f2cca5009d372a7bf88bc392aeb Mon Sep 17 00:00:00 2001 From: Svilen Date: Tue, 13 Jun 2017 09:54:24 +0300 Subject: [PATCH] Added author tag where missing. (#2351) See openhab/static-code-analysis#52 Signed-off-by: Svilen Valkanov --- .../atlona/internal/pro3/AtlonaPro3Utilities.java | 4 ++++ .../avmfritz/handler/DeviceListPolling.java | 2 ++ .../boschindego/internal/IndegoStateConstants.java | 4 ++++ .../binding/folding/handler/SlotHandler.java | 1 + .../folding/handler/SlotUpdateListener.java | 2 ++ .../HomematicConfigDescriptionProviderImpl.java | 4 ++++ .../homematic/type/HomematicTypeGenerator.java | 4 ++++ .../lutron/handler/OccupancySensorHandler.java | 4 ++++ .../milight/internal/MilightThingState.java | 2 +- .../milight/internal/protocol/QueueItem.java | 4 ++++ .../protocol/states/MuteStateValues.java | 4 ++++ .../protocol/states/PowerStateValues.java | 4 ++++ .../utils/DisplayInformationConverter.java | 6 +++++- .../pioneeravr/protocol/utils/VolumeConverter.java | 14 +++++++++----- .../internal/messages/RFXComMessageFactory.java | 6 ++++-- .../discovery/ZoneDiscoveryService.java | 8 ++++++-- .../binding/zoneminder/ZoneMinderProperties.java | 4 ++++ .../discovery/ZoneMinderDiscoveryService.java | 4 ++++ .../internal/DataRefreshPriorityEnum.java | 4 ++++ .../AbstractTemperatureHomekitAccessoryImpl.java | 4 ++++ .../accessories/HomekitHumiditySensorImpl.java | 6 +++++- .../cometvisu/internal/CometVisuDashboardTile.java | 4 ++++ 22 files changed, 87 insertions(+), 12 deletions(-) diff --git a/addons/binding/org.openhab.binding.atlona/src/main/java/org/openhab/binding/atlona/internal/pro3/AtlonaPro3Utilities.java b/addons/binding/org.openhab.binding.atlona/src/main/java/org/openhab/binding/atlona/internal/pro3/AtlonaPro3Utilities.java index 1e06fc6d8a1d7..a108debc7231d 100644 --- a/addons/binding/org.openhab.binding.atlona/src/main/java/org/openhab/binding/atlona/internal/pro3/AtlonaPro3Utilities.java +++ b/addons/binding/org.openhab.binding.atlona/src/main/java/org/openhab/binding/atlona/internal/pro3/AtlonaPro3Utilities.java @@ -8,6 +8,10 @@ */ package org.openhab.binding.atlona.internal.pro3; +/** + * + * @author Tim Roberts - Initial contribution + */ public class AtlonaPro3Utilities { /** * Helper method to create a channel id from a group with no port number attached diff --git a/addons/binding/org.openhab.binding.avmfritz/src/main/java/org/openhab/binding/avmfritz/handler/DeviceListPolling.java b/addons/binding/org.openhab.binding.avmfritz/src/main/java/org/openhab/binding/avmfritz/handler/DeviceListPolling.java index 8712f7aca1869..89f25308c0e7e 100644 --- a/addons/binding/org.openhab.binding.avmfritz/src/main/java/org/openhab/binding/avmfritz/handler/DeviceListPolling.java +++ b/addons/binding/org.openhab.binding.avmfritz/src/main/java/org/openhab/binding/avmfritz/handler/DeviceListPolling.java @@ -14,6 +14,8 @@ /** * Polling worker class. + * + * @author Robert Bausdorf - Initial Contribution */ public class DeviceListPolling implements Runnable { /** diff --git a/addons/binding/org.openhab.binding.boschindego/src/main/java/org/openhab/binding/boschindego/internal/IndegoStateConstants.java b/addons/binding/org.openhab.binding.boschindego/src/main/java/org/openhab/binding/boschindego/internal/IndegoStateConstants.java index 080c6d8f0ad09..e1a42af43a548 100644 --- a/addons/binding/org.openhab.binding.boschindego/src/main/java/org/openhab/binding/boschindego/internal/IndegoStateConstants.java +++ b/addons/binding/org.openhab.binding.boschindego/src/main/java/org/openhab/binding/boschindego/internal/IndegoStateConstants.java @@ -8,6 +8,10 @@ */ package org.openhab.binding.boschindego.internal; +/** + * + * @author Jonas Fleck - Initial contribution + */ public class IndegoStateConstants { public static final int STATE_DOCKED_1 = 258; diff --git a/addons/binding/org.openhab.binding.folding/src/main/java/org/openhab/binding/folding/handler/SlotHandler.java b/addons/binding/org.openhab.binding.folding/src/main/java/org/openhab/binding/folding/handler/SlotHandler.java index 008ebfb76834a..abd1e9b0f78c7 100644 --- a/addons/binding/org.openhab.binding.folding/src/main/java/org/openhab/binding/folding/handler/SlotHandler.java +++ b/addons/binding/org.openhab.binding.folding/src/main/java/org/openhab/binding/folding/handler/SlotHandler.java @@ -27,6 +27,7 @@ * Slot handlers. The Slot handler exposes the status of a slot, and allows * users to start / stop folding. * + * @author Marius Bjørnstad - Initial contribution */ public class SlotHandler extends BaseThingHandler implements SlotUpdateListener { diff --git a/addons/binding/org.openhab.binding.folding/src/main/java/org/openhab/binding/folding/handler/SlotUpdateListener.java b/addons/binding/org.openhab.binding.folding/src/main/java/org/openhab/binding/folding/handler/SlotUpdateListener.java index d1c7e560aa650..8b3bdbeb6d806 100644 --- a/addons/binding/org.openhab.binding.folding/src/main/java/org/openhab/binding/folding/handler/SlotUpdateListener.java +++ b/addons/binding/org.openhab.binding.folding/src/main/java/org/openhab/binding/folding/handler/SlotUpdateListener.java @@ -13,6 +13,8 @@ * * The client performs refreshes regularly, retrieving information about * all slots. It then calls refreshed on all registered SlotUpdateListeners. + * + * @author Marius Bjørnstad - Initial contribution */ public interface SlotUpdateListener { void refreshed(SlotInfo si); diff --git a/addons/binding/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/type/HomematicConfigDescriptionProviderImpl.java b/addons/binding/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/type/HomematicConfigDescriptionProviderImpl.java index 3fa741acfc6fc..3781c8452021d 100644 --- a/addons/binding/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/type/HomematicConfigDescriptionProviderImpl.java +++ b/addons/binding/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/type/HomematicConfigDescriptionProviderImpl.java @@ -16,6 +16,10 @@ import org.eclipse.smarthome.config.core.ConfigDescription; +/** + * + * @author Gerhard Riegler - Initial contribution + */ public class HomematicConfigDescriptionProviderImpl implements HomematicConfigDescriptionProvider { private Map configDescriptionsByURI = new HashMap(); diff --git a/addons/binding/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/type/HomematicTypeGenerator.java b/addons/binding/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/type/HomematicTypeGenerator.java index fe678ae0aacd2..3ba558d1c0e11 100644 --- a/addons/binding/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/type/HomematicTypeGenerator.java +++ b/addons/binding/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/type/HomematicTypeGenerator.java @@ -10,6 +10,10 @@ import org.openhab.binding.homematic.internal.model.HmDevice; +/** + * + * @author Gerhard Riegler - Initial contribution + */ public interface HomematicTypeGenerator { /** diff --git a/addons/binding/org.openhab.binding.lutron/src/main/java/org/openhab/binding/lutron/handler/OccupancySensorHandler.java b/addons/binding/org.openhab.binding.lutron/src/main/java/org/openhab/binding/lutron/handler/OccupancySensorHandler.java index 65a270693cb96..b6c0e0dd6a894 100644 --- a/addons/binding/org.openhab.binding.lutron/src/main/java/org/openhab/binding/lutron/handler/OccupancySensorHandler.java +++ b/addons/binding/org.openhab.binding.lutron/src/main/java/org/openhab/binding/lutron/handler/OccupancySensorHandler.java @@ -18,6 +18,10 @@ import org.eclipse.smarthome.core.types.Command; import org.openhab.binding.lutron.internal.protocol.LutronCommandType; +/** + * + * @author Allan Tong - Initial contribution + */ public class OccupancySensorHandler extends LutronHandler { private static final String OCCUPIED_STATE_UPDATE = "2"; private static final String STATE_OCCUPIED = "3"; diff --git a/addons/binding/org.openhab.binding.milight/src/main/java/org/openhab/binding/milight/internal/MilightThingState.java b/addons/binding/org.openhab.binding.milight/src/main/java/org/openhab/binding/milight/internal/MilightThingState.java index e2916cf98c412..10b16c6ae8936 100644 --- a/addons/binding/org.openhab.binding.milight/src/main/java/org/openhab/binding/milight/internal/MilightThingState.java +++ b/addons/binding/org.openhab.binding.milight/src/main/java/org/openhab/binding/milight/internal/MilightThingState.java @@ -11,7 +11,7 @@ /** * Contains a led bulb state including the HSB value, white color temperature and animation values. * - * @since 2.0 + * @author David Graeff - Initial contribution */ public class MilightThingState { public int animationMode = 0; diff --git a/addons/binding/org.openhab.binding.milight/src/main/java/org/openhab/binding/milight/internal/protocol/QueueItem.java b/addons/binding/org.openhab.binding.milight/src/main/java/org/openhab/binding/milight/internal/protocol/QueueItem.java index 94d6a13a15f5e..d8b733b33dbac 100644 --- a/addons/binding/org.openhab.binding.milight/src/main/java/org/openhab/binding/milight/internal/protocol/QueueItem.java +++ b/addons/binding/org.openhab.binding.milight/src/main/java/org/openhab/binding/milight/internal/protocol/QueueItem.java @@ -8,6 +8,10 @@ */ package org.openhab.binding.milight.internal.protocol; +/** + * + * @author David Graeff - Initial contribution + */ public class QueueItem { static final int INVALID = -1; byte[] data; diff --git a/addons/binding/org.openhab.binding.pioneeravr/src/main/java/org/openhab/binding/pioneeravr/protocol/states/MuteStateValues.java b/addons/binding/org.openhab.binding.pioneeravr/src/main/java/org/openhab/binding/pioneeravr/protocol/states/MuteStateValues.java index b56a368f19872..b515555361014 100644 --- a/addons/binding/org.openhab.binding.pioneeravr/src/main/java/org/openhab/binding/pioneeravr/protocol/states/MuteStateValues.java +++ b/addons/binding/org.openhab.binding.pioneeravr/src/main/java/org/openhab/binding/pioneeravr/protocol/states/MuteStateValues.java @@ -8,6 +8,10 @@ */ package org.openhab.binding.pioneeravr.protocol.states; +/** + * + * @author Antoine Besnard - Initial contribution + */ public interface MuteStateValues { public static final String ON_VALUE = "0"; diff --git a/addons/binding/org.openhab.binding.pioneeravr/src/main/java/org/openhab/binding/pioneeravr/protocol/states/PowerStateValues.java b/addons/binding/org.openhab.binding.pioneeravr/src/main/java/org/openhab/binding/pioneeravr/protocol/states/PowerStateValues.java index 62ddb3db8ab09..fa8c046a26190 100644 --- a/addons/binding/org.openhab.binding.pioneeravr/src/main/java/org/openhab/binding/pioneeravr/protocol/states/PowerStateValues.java +++ b/addons/binding/org.openhab.binding.pioneeravr/src/main/java/org/openhab/binding/pioneeravr/protocol/states/PowerStateValues.java @@ -8,6 +8,10 @@ */ package org.openhab.binding.pioneeravr.protocol.states; +/** + * + * @author Antoine Besnard - Initial contribution + */ public interface PowerStateValues { public static final String ON_VALUE = "0"; diff --git a/addons/binding/org.openhab.binding.pioneeravr/src/main/java/org/openhab/binding/pioneeravr/protocol/utils/DisplayInformationConverter.java b/addons/binding/org.openhab.binding.pioneeravr/src/main/java/org/openhab/binding/pioneeravr/protocol/utils/DisplayInformationConverter.java index 3aadc1f59e9a1..500c20204ae9a 100644 --- a/addons/binding/org.openhab.binding.pioneeravr/src/main/java/org/openhab/binding/pioneeravr/protocol/utils/DisplayInformationConverter.java +++ b/addons/binding/org.openhab.binding.pioneeravr/src/main/java/org/openhab/binding/pioneeravr/protocol/utils/DisplayInformationConverter.java @@ -10,11 +10,15 @@ import org.openhab.binding.pioneeravr.protocol.AvrConnectionException; +/** + * + * @author Antoine Besnard - Initial contribution + */ public class DisplayInformationConverter { /** * Convert an IpControl information message payload to a readable String. - * + * * @param responsePayload * @return * @throws AvrConnectionException diff --git a/addons/binding/org.openhab.binding.pioneeravr/src/main/java/org/openhab/binding/pioneeravr/protocol/utils/VolumeConverter.java b/addons/binding/org.openhab.binding.pioneeravr/src/main/java/org/openhab/binding/pioneeravr/protocol/utils/VolumeConverter.java index f657befdc5724..f41326ede727f 100644 --- a/addons/binding/org.openhab.binding.pioneeravr/src/main/java/org/openhab/binding/pioneeravr/protocol/utils/VolumeConverter.java +++ b/addons/binding/org.openhab.binding.pioneeravr/src/main/java/org/openhab/binding/pioneeravr/protocol/utils/VolumeConverter.java @@ -10,6 +10,10 @@ import java.text.DecimalFormat; +/** + * + * @author Antoine Besnard - Initial contribution + */ public final class VolumeConverter { private static final String IP_CONTROL_VOLUME_FORMAT = "000"; @@ -22,7 +26,7 @@ public final class VolumeConverter { /** * Return the double value of the volume from the value received in the IpControl response. - * + * * @param ipControlVolume * @return the volume in Db */ @@ -33,7 +37,7 @@ public static double convertFromIpControlVolumeToDb(String ipControlVolume) { /** * Return the string parameter to send to the AVR based on the given volume. - * + * * @param volumeDb * @return the volume for IpControlRequest */ @@ -44,7 +48,7 @@ public static String convertFromDbToIpControlVolume(double volumeDb) { /** * Return the String parameter to send to the AVR based on the given persentage of the max volume level. - * + * * @param volumePercent * @return the volume for IpControlRequest */ @@ -55,7 +59,7 @@ public static String convertFromPercentToIpControlVolume(double volumePercent) { /** * Return the percentage of the max volume levelfrom the value received in the IpControl response. - * + * * @param ipControlVolume * @return the volume percentage */ @@ -66,7 +70,7 @@ public static double convertFromIpControlVolumeToPercent(String ipControlVolume) /** * Format the given double value to an IpControl volume. - * + * * @param ipControlVolume * @return */ diff --git a/addons/binding/org.openhab.binding.rfxcom/src/main/java/org/openhab/binding/rfxcom/internal/messages/RFXComMessageFactory.java b/addons/binding/org.openhab.binding.rfxcom/src/main/java/org/openhab/binding/rfxcom/internal/messages/RFXComMessageFactory.java index cb77218ce80f3..056bec2f60b6b 100644 --- a/addons/binding/org.openhab.binding.rfxcom/src/main/java/org/openhab/binding/rfxcom/internal/messages/RFXComMessageFactory.java +++ b/addons/binding/org.openhab.binding.rfxcom/src/main/java/org/openhab/binding/rfxcom/internal/messages/RFXComMessageFactory.java @@ -14,12 +14,14 @@ import java.util.HashMap; import java.util.Map; -import org.openhab.binding.rfxcom.internal.config.RFXComBridgeConfiguration; import org.openhab.binding.rfxcom.internal.exceptions.RFXComException; import org.openhab.binding.rfxcom.internal.exceptions.RFXComMessageNotImplementedException; import org.openhab.binding.rfxcom.internal.messages.RFXComBaseMessage.PacketType; -import org.openhab.binding.rfxcom.internal.messages.RFXComInterfaceMessage.TransceiverType; +/** + * + * @author Pauli Anttila - Initial contribution + */ public class RFXComMessageFactory { @SuppressWarnings("serial") diff --git a/addons/binding/org.openhab.binding.yamahareceiver/src/main/java/org/openhab/binding/yamahareceiver/discovery/ZoneDiscoveryService.java b/addons/binding/org.openhab.binding.yamahareceiver/src/main/java/org/openhab/binding/yamahareceiver/discovery/ZoneDiscoveryService.java index df22c6f38fdab..c47e4ac5efea5 100644 --- a/addons/binding/org.openhab.binding.yamahareceiver/src/main/java/org/openhab/binding/yamahareceiver/discovery/ZoneDiscoveryService.java +++ b/addons/binding/org.openhab.binding.yamahareceiver/src/main/java/org/openhab/binding/yamahareceiver/discovery/ZoneDiscoveryService.java @@ -26,6 +26,10 @@ import org.osgi.framework.BundleContext; import org.osgi.framework.ServiceRegistration; + /** + * + * @author David Gräff - Initial contribution + */ public class ZoneDiscoveryService extends AbstractDiscoveryService { private ServiceRegistration reg = null; @@ -47,13 +51,13 @@ protected void startScan() { public void detectZones(YamahaReceiverState state, String base_udn) { Map properties = new HashMap<>(3); - properties.put((String) YamahaReceiverBindingConstants.CONFIG_HOST_NAME, state.getHost()); + properties.put(YamahaReceiverBindingConstants.CONFIG_HOST_NAME, state.getHost()); for (Zone zone : state.additional_zones) { String zoneName = zone.name(); ThingUID uid = new ThingUID(YamahaReceiverBindingConstants.THING_TYPE_YAMAHAAV, base_udn + zoneName); - properties.put((String) YamahaReceiverBindingConstants.CONFIG_ZONE, zoneName); + properties.put(YamahaReceiverBindingConstants.CONFIG_ZONE, zoneName); DiscoveryResult discoveryResult = DiscoveryResultBuilder.create(uid).withProperties(properties) .withLabel(state.name + " " + zoneName).build(); thingDiscovered(discoveryResult); diff --git a/addons/binding/org.openhab.binding.zoneminder/src/main/java/org/openhab/binding/zoneminder/ZoneMinderProperties.java b/addons/binding/org.openhab.binding.zoneminder/src/main/java/org/openhab/binding/zoneminder/ZoneMinderProperties.java index 0e2e20cf6e8af..4877ad418e347 100644 --- a/addons/binding/org.openhab.binding.zoneminder/src/main/java/org/openhab/binding/zoneminder/ZoneMinderProperties.java +++ b/addons/binding/org.openhab.binding.zoneminder/src/main/java/org/openhab/binding/zoneminder/ZoneMinderProperties.java @@ -8,6 +8,10 @@ */ package org.openhab.binding.zoneminder; +/** + * + * @author Martin S. Eskildsen - Initial contribution + */ public class ZoneMinderProperties { public static final String PROPERTY_ID = "Id"; diff --git a/addons/binding/org.openhab.binding.zoneminder/src/main/java/org/openhab/binding/zoneminder/discovery/ZoneMinderDiscoveryService.java b/addons/binding/org.openhab.binding.zoneminder/src/main/java/org/openhab/binding/zoneminder/discovery/ZoneMinderDiscoveryService.java index e045deb15564a..738a3e20a33fe 100644 --- a/addons/binding/org.openhab.binding.zoneminder/src/main/java/org/openhab/binding/zoneminder/discovery/ZoneMinderDiscoveryService.java +++ b/addons/binding/org.openhab.binding.zoneminder/src/main/java/org/openhab/binding/zoneminder/discovery/ZoneMinderDiscoveryService.java @@ -27,6 +27,10 @@ import name.eskildsen.zoneminder.IZoneMinderMonitorData; +/** + * + * @author Martin S. Eskildsen - Initial contribution + */ public class ZoneMinderDiscoveryService extends AbstractDiscoveryService implements ExtendedDiscoveryService { private final Logger logger = LoggerFactory.getLogger(ZoneMinderDiscoveryService.class); diff --git a/addons/binding/org.openhab.binding.zoneminder/src/main/java/org/openhab/binding/zoneminder/internal/DataRefreshPriorityEnum.java b/addons/binding/org.openhab.binding.zoneminder/src/main/java/org/openhab/binding/zoneminder/internal/DataRefreshPriorityEnum.java index 2f53b98526388..600a990331e13 100644 --- a/addons/binding/org.openhab.binding.zoneminder/src/main/java/org/openhab/binding/zoneminder/internal/DataRefreshPriorityEnum.java +++ b/addons/binding/org.openhab.binding.zoneminder/src/main/java/org/openhab/binding/zoneminder/internal/DataRefreshPriorityEnum.java @@ -8,6 +8,10 @@ */ package org.openhab.binding.zoneminder.internal; +/** + * + * @author Martin S. Eskildsen - Initial contribution + */ public enum DataRefreshPriorityEnum { SCHEDULED, HIGH_PRIORITY; diff --git a/addons/io/org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/accessories/AbstractTemperatureHomekitAccessoryImpl.java b/addons/io/org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/accessories/AbstractTemperatureHomekitAccessoryImpl.java index a751bde8a2bcc..6c336e63f5e94 100644 --- a/addons/io/org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/accessories/AbstractTemperatureHomekitAccessoryImpl.java +++ b/addons/io/org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/accessories/AbstractTemperatureHomekitAccessoryImpl.java @@ -17,6 +17,10 @@ import com.beowulfe.hap.accessories.TemperatureSensor; import com.beowulfe.hap.accessories.properties.TemperatureUnit; +/** + * + * @author Andy Lintner - Initial contribution + */ abstract class AbstractTemperatureHomekitAccessoryImpl extends AbstractHomekitAccessoryImpl implements TemperatureSensor { diff --git a/addons/io/org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/accessories/HomekitHumiditySensorImpl.java b/addons/io/org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/accessories/HomekitHumiditySensorImpl.java index 8345142feddb5..ee71c04db1c0c 100644 --- a/addons/io/org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/accessories/HomekitHumiditySensorImpl.java +++ b/addons/io/org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/accessories/HomekitHumiditySensorImpl.java @@ -19,7 +19,11 @@ import com.beowulfe.hap.HomekitCharacteristicChangeCallback; import com.beowulfe.hap.accessories.HumiditySensor; -public class HomekitHumiditySensorImpl extends AbstractHomekitAccessoryImplimplements HumiditySensor { +/** + * + * @author Andy Lintner - Initial implementation + */ +public class HomekitHumiditySensorImpl extends AbstractHomekitAccessoryImpl implements HumiditySensor { public HomekitHumiditySensorImpl(HomekitTaggedItem taggedItem, ItemRegistry itemRegistry, HomekitAccessoryUpdater updater) { diff --git a/addons/ui/org.openhab.ui.cometvisu/src/main/java/org/openhab/ui/cometvisu/internal/CometVisuDashboardTile.java b/addons/ui/org.openhab.ui.cometvisu/src/main/java/org/openhab/ui/cometvisu/internal/CometVisuDashboardTile.java index 9273e74971750..f7418cd4a55bb 100644 --- a/addons/ui/org.openhab.ui.cometvisu/src/main/java/org/openhab/ui/cometvisu/internal/CometVisuDashboardTile.java +++ b/addons/ui/org.openhab.ui.cometvisu/src/main/java/org/openhab/ui/cometvisu/internal/CometVisuDashboardTile.java @@ -10,6 +10,10 @@ import org.openhab.ui.dashboard.DashboardTile; +/** + * + * @author Tobias Bräutigam - Initial contribution + */ public class CometVisuDashboardTile implements DashboardTile { @Override public String getName() {