From a27c3b6221cfc6415012f5e651b5239ec09c7944 Mon Sep 17 00:00:00 2001 From: clinique Date: Fri, 6 Oct 2023 10:09:19 +0200 Subject: [PATCH] Missing an import Signed-off-by: clinique --- .../automation/javarule/internal/script/RuleProcessor.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bundles/org.smarthomej.automation.javarule/src/main/java/org/smarthomej/automation/javarule/internal/script/RuleProcessor.java b/bundles/org.smarthomej.automation.javarule/src/main/java/org/smarthomej/automation/javarule/internal/script/RuleProcessor.java index 770b97addb..253dfd342d 100644 --- a/bundles/org.smarthomej.automation.javarule/src/main/java/org/smarthomej/automation/javarule/internal/script/RuleProcessor.java +++ b/bundles/org.smarthomej.automation.javarule/src/main/java/org/smarthomej/automation/javarule/internal/script/RuleProcessor.java @@ -16,6 +16,8 @@ import static org.smarthomej.automation.javarule.internal.JavaRuleConstants.CONDITION_FROM_ANNOTATION; import static org.smarthomej.automation.javarule.internal.JavaRuleConstants.TRIGGER_FROM_ANNOTATION; +import java.util.Set; + import java.lang.annotation.Annotation; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; @@ -78,7 +80,7 @@ public static List getSimpleRules(String scriptIdentifier, JavaRule String ruleName = method.getName(); String ruleDescription = ruleAnnotation.name(); - Set tags = ruleAnnotation.tags(); + Set ruleTags = ruleAnnotation.tags(); if (ruleDescription.isBlank() || ANNOTATION_DEFAULT.equals(ruleDescription)) { ruleDescription = script.getClass().getSimpleName() + "/" + method.getName(); @@ -123,7 +125,7 @@ public Object execute(Action module, Map input) { simpleRule.setDescription(ruleDescription); simpleRule.setTriggers(triggers); simpleRule.setConditions(conditions); - simpleRule.setTags() + simpleRule.setTags(ruleTags); rules.add(simpleRule);