diff --git a/bundles/org.openhab.core.automation.module.media/src/main/java/org/openhab/core/automation/module/media/internal/MediaActionTypeProvider.java b/bundles/org.openhab.core.automation.module.media/src/main/java/org/openhab/core/automation/module/media/internal/MediaActionTypeProvider.java index e9fa7cac3c4..0cd84f477bd 100644 --- a/bundles/org.openhab.core.automation.module.media/src/main/java/org/openhab/core/automation/module/media/internal/MediaActionTypeProvider.java +++ b/bundles/org.openhab.core.automation.module.media/src/main/java/org/openhab/core/automation/module/media/internal/MediaActionTypeProvider.java @@ -60,8 +60,8 @@ public MediaActionTypeProvider(final @Reference AudioManager audioManager) { @SuppressWarnings("unchecked") @Override - public @Nullable ModuleType getModuleType(String UID, @Nullable Locale locale) { - switch (UID) { + public @Nullable ModuleType getModuleType(String uid, @Nullable Locale locale) { + switch (uid) { case PlayActionHandler.TYPE_ID: return getPlayActionType(locale); case SayActionHandler.TYPE_ID: diff --git a/bundles/org.openhab.core.automation.module.script.rulesupport/src/main/java/org/openhab/core/automation/module/script/rulesupport/internal/ScriptedCustomModuleTypeProvider.java b/bundles/org.openhab.core.automation.module.script.rulesupport/src/main/java/org/openhab/core/automation/module/script/rulesupport/internal/ScriptedCustomModuleTypeProvider.java index a8c0803d33a..23eadc0f242 100644 --- a/bundles/org.openhab.core.automation.module.script.rulesupport/src/main/java/org/openhab/core/automation/module/script/rulesupport/internal/ScriptedCustomModuleTypeProvider.java +++ b/bundles/org.openhab.core.automation.module.script.rulesupport/src/main/java/org/openhab/core/automation/module/script/rulesupport/internal/ScriptedCustomModuleTypeProvider.java @@ -57,8 +57,8 @@ public void removeProviderChangeListener(ProviderChangeListener list @SuppressWarnings("unchecked") @Override - public T getModuleType(String UID, @Nullable Locale locale) { - return (T) modulesTypes.get(UID); + public T getModuleType(String uid, @Nullable Locale locale) { + return (T) modulesTypes.get(uid); } @SuppressWarnings("unchecked") diff --git a/bundles/org.openhab.core.automation.module.script.rulesupport/src/main/java/org/openhab/core/automation/module/script/rulesupport/shared/ScriptedAutomationManager.java b/bundles/org.openhab.core.automation.module.script.rulesupport/src/main/java/org/openhab/core/automation/module/script/rulesupport/shared/ScriptedAutomationManager.java index 0c51034f125..b0e7f5e14ab 100644 --- a/bundles/org.openhab.core.automation.module.script.rulesupport/src/main/java/org/openhab/core/automation/module/script/rulesupport/shared/ScriptedAutomationManager.java +++ b/bundles/org.openhab.core.automation.module.script.rulesupport/src/main/java/org/openhab/core/automation/module/script/rulesupport/shared/ScriptedAutomationManager.java @@ -67,10 +67,10 @@ public ScriptedAutomationManager(RuleSupportRuleRegistryDelegate ruleRegistryDel this.scriptedPrivateModuleHandlerFactory = scriptedPrivateModuleHandlerFactory; } - public void removeModuleType(String UID) { - if (modules.remove(UID)) { - scriptedCustomModuleTypeProvider.removeModuleType(UID); - removeHandler(UID); + public void removeModuleType(String uid) { + if (modules.remove(uid)) { + scriptedCustomModuleTypeProvider.removeModuleType(uid); + removeHandler(uid); } } diff --git a/bundles/org.openhab.core.automation.module.script/src/main/java/org/openhab/core/automation/module/script/internal/provider/ScriptModuleTypeProvider.java b/bundles/org.openhab.core.automation.module.script/src/main/java/org/openhab/core/automation/module/script/internal/provider/ScriptModuleTypeProvider.java index 630a2b27a31..dce05230548 100644 --- a/bundles/org.openhab.core.automation.module.script/src/main/java/org/openhab/core/automation/module/script/internal/provider/ScriptModuleTypeProvider.java +++ b/bundles/org.openhab.core.automation.module.script/src/main/java/org/openhab/core/automation/module/script/internal/provider/ScriptModuleTypeProvider.java @@ -68,12 +68,12 @@ public void deactivate() { @SuppressWarnings("unchecked") @Override - public @Nullable ModuleType getModuleType(String UID, @Nullable Locale locale) { + public @Nullable ModuleType getModuleType(String uid, @Nullable Locale locale) { if (parameterOptions.isEmpty()) { return null; - } else if (ScriptActionHandler.TYPE_ID.equals(UID)) { + } else if (ScriptActionHandler.TYPE_ID.equals(uid)) { return getScriptActionType(locale); - } else if (ScriptConditionHandler.TYPE_ID.equals(UID)) { + } else if (ScriptConditionHandler.TYPE_ID.equals(uid)) { return getScriptConditionType(locale); } else { return null; diff --git a/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/internal/ActionImpl.java b/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/internal/ActionImpl.java index 9b8c01afea5..679452ab0f2 100644 --- a/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/internal/ActionImpl.java +++ b/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/internal/ActionImpl.java @@ -37,16 +37,16 @@ public class ActionImpl extends ModuleImpl implements Action { /** * Constructor of Action object. * - * @param UID action unique id. + * @param uid action unique id. * @param typeUID module type unique id. * @param configuration map of configuration values. * @param label the label * @param description description * @param inputs set of connections to other modules (triggers and other actions). */ - public ActionImpl(String UID, String typeUID, @Nullable Configuration configuration, @Nullable String label, + public ActionImpl(String uid, String typeUID, @Nullable Configuration configuration, @Nullable String label, @Nullable String description, @Nullable Map inputs) { - super(UID, typeUID, configuration, label, description); + super(uid, typeUID, configuration, label, description); this.inputs = inputs == null ? Map.of() : Map.copyOf(inputs); } diff --git a/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/internal/commands/CommandlineModuleTypeProvider.java b/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/internal/commands/CommandlineModuleTypeProvider.java index 1138555524f..e76b3e51c3d 100644 --- a/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/internal/commands/CommandlineModuleTypeProvider.java +++ b/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/internal/commands/CommandlineModuleTypeProvider.java @@ -136,9 +136,9 @@ public Set importModuleTypes(String parserType, URL url) throws IOEx @SuppressWarnings("unchecked") @Override - public @Nullable ModuleType getModuleType(String UID, @Nullable Locale locale) { + public @Nullable ModuleType getModuleType(String uid, @Nullable Locale locale) { synchronized (providedObjectsHolder) { - return providedObjectsHolder.get(UID); + return providedObjectsHolder.get(uid); } } diff --git a/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/internal/commands/CommandlineTemplateProvider.java b/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/internal/commands/CommandlineTemplateProvider.java index 4ab08469560..092461436b7 100644 --- a/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/internal/commands/CommandlineTemplateProvider.java +++ b/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/internal/commands/CommandlineTemplateProvider.java @@ -130,9 +130,9 @@ public Set importTemplates(String parserType, URL url) throws IOEx } @Override - public @Nullable RuleTemplate getTemplate(String UID, @Nullable Locale locale) { + public @Nullable RuleTemplate getTemplate(String uid, @Nullable Locale locale) { synchronized (providerPortfolio) { - return providedObjectsHolder.get(UID); + return providedObjectsHolder.get(uid); } } diff --git a/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/internal/module/provider/AnnotatedActionModuleTypeProvider.java b/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/internal/module/provider/AnnotatedActionModuleTypeProvider.java index e2e8555824c..26d1c042878 100644 --- a/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/internal/module/provider/AnnotatedActionModuleTypeProvider.java +++ b/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/internal/module/provider/AnnotatedActionModuleTypeProvider.java @@ -98,8 +98,8 @@ public Collection getAll() { @SuppressWarnings("unchecked") @Override - public T getModuleType(String UID, @Nullable Locale locale) { - return (T) localizeModuleType(UID, locale); + public T getModuleType(String uid, @Nullable Locale locale) { + return (T) localizeModuleType(uid, locale); } @SuppressWarnings("unchecked") diff --git a/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/internal/provider/ModuleTypeResourceBundleProvider.java b/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/internal/provider/ModuleTypeResourceBundleProvider.java index f00d431fb88..b8e232cc0c5 100644 --- a/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/internal/provider/ModuleTypeResourceBundleProvider.java +++ b/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/internal/provider/ModuleTypeResourceBundleProvider.java @@ -114,8 +114,8 @@ public void removeProviderChangeListener(ProviderChangeListener list @SuppressWarnings("unchecked") @Override - public T getModuleType(String UID, @Nullable Locale locale) { - return (T) getPerLocale(providedObjectsHolder.get(UID), locale); + public T getModuleType(String uid, @Nullable Locale locale) { + return (T) getPerLocale(providedObjectsHolder.get(uid), locale); } @Override diff --git a/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/internal/provider/TemplateResourceBundleProvider.java b/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/internal/provider/TemplateResourceBundleProvider.java index f44367d6673..8a1b5e0bf43 100644 --- a/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/internal/provider/TemplateResourceBundleProvider.java +++ b/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/internal/provider/TemplateResourceBundleProvider.java @@ -131,8 +131,8 @@ public void removeProviderChangeListener(ProviderChangeListener li * @see TemplateProvider#getTemplate(java.lang.String, java.util.Locale) */ @Override - public @Nullable RuleTemplate getTemplate(String UID, @Nullable Locale locale) { - return getPerLocale(providedObjectsHolder.get(UID), locale); + public @Nullable RuleTemplate getTemplate(String uid, @Nullable Locale locale) { + return getPerLocale(providedObjectsHolder.get(uid), locale); } /** diff --git a/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/internal/provider/file/ModuleTypeFileProvider.java b/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/internal/provider/file/ModuleTypeFileProvider.java index edcfa7a833e..b6c2e54a8f8 100644 --- a/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/internal/provider/file/ModuleTypeFileProvider.java +++ b/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/internal/provider/file/ModuleTypeFileProvider.java @@ -47,8 +47,8 @@ public Collection getAll() { @SuppressWarnings("unchecked") @Override - public @Nullable T getModuleType(String UID, @Nullable Locale locale) { - return (T) providedObjectsHolder.get(UID); + public @Nullable T getModuleType(String uid, @Nullable Locale locale) { + return (T) providedObjectsHolder.get(uid); } @SuppressWarnings("unchecked") diff --git a/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/internal/provider/file/TemplateFileProvider.java b/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/internal/provider/file/TemplateFileProvider.java index 3bf0aa0575d..6282d471bb3 100644 --- a/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/internal/provider/file/TemplateFileProvider.java +++ b/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/internal/provider/file/TemplateFileProvider.java @@ -47,8 +47,8 @@ public Collection getAll() { } @Override - public @Nullable RuleTemplate getTemplate(String UID, @Nullable Locale locale) { - return providedObjectsHolder.get(UID); + public @Nullable RuleTemplate getTemplate(String uid, @Nullable Locale locale) { + return providedObjectsHolder.get(uid); } @Override diff --git a/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/module/provider/AnnotationActionModuleTypeHelper.java b/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/module/provider/AnnotationActionModuleTypeHelper.java index bf78aa578f1..153d8b75a8e 100644 --- a/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/module/provider/AnnotationActionModuleTypeHelper.java +++ b/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/module/provider/AnnotationActionModuleTypeHelper.java @@ -147,8 +147,8 @@ private List getOutputsFromMethod(Method method) { return outputs; } - public @Nullable ActionType buildModuleType(String UID, Map> moduleInformation) { - Set mis = moduleInformation.get(UID); + public @Nullable ActionType buildModuleType(String uid, Map> moduleInformation) { + Set mis = moduleInformation.get(uid); List configDescriptions = new ArrayList<>(); if (mis != null && !mis.isEmpty()) { @@ -158,7 +158,7 @@ private List getOutputsFromMethod(Method method) { if (mi.getConfigName() != null && mi.getThingUID() != null) { logger.error( "ModuleType with UID {} has thingUID ({}) and multi-service ({}) property set, ignoring it.", - UID, mi.getConfigName(), mi.getThingUID()); + uid, mi.getConfigName(), mi.getThingUID()); return null; } else if (mi.getConfigName() != null) { kind = ActionModuleKind.SERVICE; @@ -170,7 +170,7 @@ private List getOutputsFromMethod(Method method) { if (configParam != null) { configDescriptions.add(configParam); } - return new ActionType(UID, configDescriptions, mi.getLabel(), mi.getDescription(), mi.getTags(), + return new ActionType(uid, configDescriptions, mi.getLabel(), mi.getDescription(), mi.getTags(), mi.getVisibility(), mi.getInputs(), mi.getOutputs()); } return null; diff --git a/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/template/RuleTemplate.java b/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/template/RuleTemplate.java index 69eef0cb7d3..e361674e211 100644 --- a/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/template/RuleTemplate.java +++ b/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/template/RuleTemplate.java @@ -109,11 +109,11 @@ public class RuleTemplate implements Template { * @param configDescriptions describing meta-data for the configuration of the future {@link Rule} instances. * @param visibility the {@link RuleTemplate}'s visibility. */ - public RuleTemplate(@Nullable String UID, @Nullable String label, @Nullable String description, + public RuleTemplate(@Nullable String uid, @Nullable String label, @Nullable String description, @Nullable Set tags, @Nullable List triggers, @Nullable List conditions, @Nullable List actions, @Nullable List configDescriptions, @Nullable Visibility visibility) { - this.uid = UID == null ? UUID.randomUUID().toString() : UID; + this.uid = uid == null ? UUID.randomUUID().toString() : uid; this.label = label; this.description = description; this.triggers = triggers == null ? List.of() : Collections.unmodifiableList(triggers); diff --git a/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/template/TemplateProvider.java b/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/template/TemplateProvider.java index 1fa8239414c..b5f39d714a7 100644 --- a/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/template/TemplateProvider.java +++ b/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/template/TemplateProvider.java @@ -34,14 +34,14 @@ public interface TemplateProvider extends Provider { * Gets the localized Templates defined by this provider. When the localization is not specified or it is not * supported a Template localized with default locale is returned. * - * @param UID unique identifier of the desired Template. + * @param uid unique identifier of the desired Template. * @param locale specifies the desired {@link Locale} to be used for localization of the returned element. If * localization resources for this locale are not available or the passed locale is {@code null} the * element is returned with the default localization. * @return the desired localized Template. */ @Nullable - E getTemplate(String UID, @Nullable Locale locale); + E getTemplate(String uid, @Nullable Locale locale); /** * Gets the localized Templates defined by this provider. When localization is not specified or it is not supported diff --git a/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/thingsupport/AnnotatedThingActionModuleTypeProvider.java b/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/thingsupport/AnnotatedThingActionModuleTypeProvider.java index 8151450db4d..f1aed13732c 100644 --- a/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/thingsupport/AnnotatedThingActionModuleTypeProvider.java +++ b/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/thingsupport/AnnotatedThingActionModuleTypeProvider.java @@ -102,8 +102,8 @@ public Collection getAll() { @SuppressWarnings("unchecked") @Override - public T getModuleType(String UID, @Nullable Locale locale) { - return (T) localizeModuleType(UID, locale); + public T getModuleType(String uid, @Nullable Locale locale) { + return (T) localizeModuleType(uid, locale); } @SuppressWarnings("unchecked") diff --git a/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/type/ActionType.java b/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/type/ActionType.java index b833a91efdd..578c72f7b1b 100644 --- a/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/type/ActionType.java +++ b/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/type/ActionType.java @@ -52,22 +52,22 @@ public class ActionType extends ModuleType { * Creates an instance of {@link ActionType} with base properties - UID, a {@link List} of configuration * descriptions and a {@link List} of {@link Input} definitions. * - * @param UID the {@link ActionType}'s identifier, or {@code null} if a random identifier should be + * @param uid the {@link ActionType}'s identifier, or {@code null} if a random identifier should be * generated. * @param configDescriptions describing meta-data for the configuration of the future {@link Action} instances. * @param inputs a {@link List} with {@link Input} meta-information descriptions of the future * {@link Action} instances. */ - public ActionType(@Nullable String UID, @Nullable List configDescriptions, + public ActionType(@Nullable String uid, @Nullable List configDescriptions, @Nullable List inputs) { - this(UID, configDescriptions, inputs, null); + this(uid, configDescriptions, inputs, null); } /** * Creates an instance of the {@link ActionType} with UID, a {@link List} of configuration descriptions, * a {@link List} of {@link Input} definitions and a {@link List} of {@link Output} descriptions. * - * @param UID the {@link ActionType}'s identifier, or {@code null} if a random identifier should be + * @param uid the {@link ActionType}'s identifier, or {@code null} if a random identifier should be * generated. * @param configDescriptions describing meta-data for the configuration of the future {@link Action} instances. * @param inputs a {@link List} with {@link Input} meta-information descriptions of the future @@ -75,9 +75,9 @@ public ActionType(@Nullable String UID, @Nullable List configDescriptions, + public ActionType(@Nullable String uid, @Nullable List configDescriptions, @Nullable List inputs, @Nullable List outputs) { - this(UID, configDescriptions, null, null, null, null, inputs, outputs); + this(uid, configDescriptions, null, null, null, null, inputs, outputs); } /** diff --git a/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/type/CompositeTriggerType.java b/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/type/CompositeTriggerType.java index 45c8bd8544b..ff883763793 100644 --- a/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/type/CompositeTriggerType.java +++ b/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/type/CompositeTriggerType.java @@ -57,7 +57,7 @@ public CompositeTriggerType(@Nullable String uid, @Nullable List configDescriptions, + public CompositeTriggerType(@Nullable String uid, @Nullable List configDescriptions, @Nullable String label, @Nullable String description, @Nullable Set tags, @Nullable Visibility visibility, @Nullable List outputs, @Nullable List children) { - super(UID, configDescriptions, label, description, tags, visibility, outputs); + super(uid, configDescriptions, label, description, tags, visibility, outputs); this.children = children != null ? Collections.unmodifiableList(children) : List.of(); } diff --git a/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/type/ModuleTypeProvider.java b/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/type/ModuleTypeProvider.java index a824e50e2c8..74d2501cada 100644 --- a/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/type/ModuleTypeProvider.java +++ b/bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/type/ModuleTypeProvider.java @@ -34,12 +34,12 @@ public interface ModuleTypeProvider extends Provider { * Gets the localized {@link ModuleType} defined by this provider. When the localization is not specified * or it is not supported a {@link ModuleType} with default locale is returned. * - * @param UID unique identifier of the {@link ModuleType}. + * @param uid unique identifier of the {@link ModuleType}. * @param locale defines localization of label and description of the {@link ModuleType} or null. * @param the type of the required object. * @return localized module type. */ - @Nullable T getModuleType(String UID, @Nullable Locale locale); + @Nullable T getModuleType(String uid, @Nullable Locale locale); /** * Gets the localized {@link ModuleType}s defined by this provider. When localization is not specified or diff --git a/bundles/org.openhab.core.thing/src/main/java/org/openhab/core/thing/dto/AbstractThingDTO.java b/bundles/org.openhab.core.thing/src/main/java/org/openhab/core/thing/dto/AbstractThingDTO.java index 0de6d869a7b..d67c670a4a8 100644 --- a/bundles/org.openhab.core.thing/src/main/java/org/openhab/core/thing/dto/AbstractThingDTO.java +++ b/bundles/org.openhab.core.thing/src/main/java/org/openhab/core/thing/dto/AbstractThingDTO.java @@ -36,10 +36,10 @@ public abstract class AbstractThingDTO { public AbstractThingDTO() { } - protected AbstractThingDTO(String thingTypeUID, String UID, String label, String bridgeUID, + protected AbstractThingDTO(String thingTypeUID, String uid, String label, String bridgeUID, Map configuration, Map properties, String location) { this.thingTypeUID = thingTypeUID; - this.UID = UID; + this.UID = uid; this.label = label; this.bridgeUID = bridgeUID; this.configuration = configuration; diff --git a/bundles/org.openhab.core.thing/src/main/java/org/openhab/core/thing/dto/ChannelTypeDTO.java b/bundles/org.openhab.core.thing/src/main/java/org/openhab/core/thing/dto/ChannelTypeDTO.java index f554fab3006..2c4c8ae8d44 100644 --- a/bundles/org.openhab.core.thing/src/main/java/org/openhab/core/thing/dto/ChannelTypeDTO.java +++ b/bundles/org.openhab.core.thing/src/main/java/org/openhab/core/thing/dto/ChannelTypeDTO.java @@ -44,11 +44,11 @@ public class ChannelTypeDTO { public ChannelTypeDTO() { } - public ChannelTypeDTO(String UID, String label, String description, String category, String itemType, + public ChannelTypeDTO(String uid, String label, String description, String category, String itemType, ChannelKind kind, List parameters, List parameterGroups, StateDescription stateDescription, Set tags, boolean advanced, CommandDescription commandDescription) { - this.UID = UID; + this.UID = uid; this.label = label; this.description = description; this.category = category; diff --git a/bundles/org.openhab.core.thing/src/main/java/org/openhab/core/thing/dto/StrippedThingTypeDTO.java b/bundles/org.openhab.core.thing/src/main/java/org/openhab/core/thing/dto/StrippedThingTypeDTO.java index 379b86cc564..ed7d2715c31 100644 --- a/bundles/org.openhab.core.thing/src/main/java/org/openhab/core/thing/dto/StrippedThingTypeDTO.java +++ b/bundles/org.openhab.core.thing/src/main/java/org/openhab/core/thing/dto/StrippedThingTypeDTO.java @@ -33,9 +33,9 @@ public class StrippedThingTypeDTO { public StrippedThingTypeDTO() { } - public StrippedThingTypeDTO(String UID, String label, String description, String category, boolean listed, + public StrippedThingTypeDTO(String uid, String label, String description, String category, boolean listed, List supportedBridgeTypeUIDs, boolean bridge) { - this.UID = UID; + this.UID = uid; this.label = label; this.description = description; this.category = category; diff --git a/bundles/org.openhab.core.thing/src/main/java/org/openhab/core/thing/dto/ThingDTO.java b/bundles/org.openhab.core.thing/src/main/java/org/openhab/core/thing/dto/ThingDTO.java index a9a8b22f770..36bf58a4cb6 100644 --- a/bundles/org.openhab.core.thing/src/main/java/org/openhab/core/thing/dto/ThingDTO.java +++ b/bundles/org.openhab.core.thing/src/main/java/org/openhab/core/thing/dto/ThingDTO.java @@ -31,9 +31,9 @@ public class ThingDTO extends AbstractThingDTO { public ThingDTO() { } - protected ThingDTO(String thingTypeUID, String UID, String label, String bridgeUID, List channels, + protected ThingDTO(String thingTypeUID, String uid, String label, String bridgeUID, List channels, Map configuration, Map properties, String location) { - super(thingTypeUID, UID, label, bridgeUID, configuration, properties, location); + super(thingTypeUID, uid, label, bridgeUID, configuration, properties, location); this.channels = channels; } } diff --git a/bundles/org.openhab.core.thing/src/main/java/org/openhab/core/thing/dto/ThingTypeDTO.java b/bundles/org.openhab.core.thing/src/main/java/org/openhab/core/thing/dto/ThingTypeDTO.java index 9c45fac59fe..5f9f6e13876 100644 --- a/bundles/org.openhab.core.thing/src/main/java/org/openhab/core/thing/dto/ThingTypeDTO.java +++ b/bundles/org.openhab.core.thing/src/main/java/org/openhab/core/thing/dto/ThingTypeDTO.java @@ -38,12 +38,12 @@ public class ThingTypeDTO extends StrippedThingTypeDTO { public ThingTypeDTO() { } - public ThingTypeDTO(String UID, String label, String description, String category, boolean listed, + public ThingTypeDTO(String uid, String label, String description, String category, boolean listed, List configParameters, List channels, List channelGroups, List supportedBridgeTypeUIDs, Map properties, boolean bridge, List parameterGroups, List extensibleChannelTypeIds) { - this.UID = UID; + this.UID = uid; this.label = label; this.description = description; this.category = category; diff --git a/itests/org.openhab.core.automation.integration.tests/src/main/java/org/openhab/core/automation/integration/test/AutomationIntegrationTest.java b/itests/org.openhab.core.automation.integration.tests/src/main/java/org/openhab/core/automation/integration/test/AutomationIntegrationTest.java index c835e0f6167..855f976b96e 100644 --- a/itests/org.openhab.core.automation.integration.tests/src/main/java/org/openhab/core/automation/integration/test/AutomationIntegrationTest.java +++ b/itests/org.openhab.core.automation.integration.tests/src/main/java/org/openhab/core/automation/integration/test/AutomationIntegrationTest.java @@ -785,8 +785,8 @@ public void testModuleTypeProviderAndTemplateProvider() { RuleTemplateProvider templateProvider = new RuleTemplateProvider() { @Override - public @Nullable RuleTemplate getTemplate(String UID, @Nullable Locale locale) { - if (UID.equals(templateUID)) { + public @Nullable RuleTemplate getTemplate(String uid, @Nullable Locale locale) { + if (uid.equals(templateUID)) { return template; } else { return null; @@ -827,10 +827,10 @@ public void removeProviderChangeListener(ProviderChangeListener list } @Override - public @Nullable T getModuleType(String UID, @Nullable Locale locale) { - if (UID.equals(triggerTypeUID)) { + public @Nullable T getModuleType(String uid, @Nullable Locale locale) { + if (uid.equals(triggerTypeUID)) { return (T) triggerType; - } else if (UID.equals(actionTypeUID)) { + } else if (uid.equals(actionTypeUID)) { return (T) actionType; } else { return null; diff --git a/itests/org.openhab.core.automation.tests/src/main/java/org/openhab/core/automation/internal/TestModuleTypeProvider.java b/itests/org.openhab.core.automation.tests/src/main/java/org/openhab/core/automation/internal/TestModuleTypeProvider.java index f1fed700091..b00b11c11bc 100644 --- a/itests/org.openhab.core.automation.tests/src/main/java/org/openhab/core/automation/internal/TestModuleTypeProvider.java +++ b/itests/org.openhab.core.automation.tests/src/main/java/org/openhab/core/automation/internal/TestModuleTypeProvider.java @@ -98,7 +98,7 @@ public void removeProviderChangeListener(ProviderChangeListener list } @Override - public @Nullable T getModuleType(String UID, @Nullable Locale locale) { + public @Nullable T getModuleType(String uid, @Nullable Locale locale) { return null; }