You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor ThingStatusTriggerHandler for improved clarity and modernization (#4938)
- Removed unnecessary instance fields (`thingUID` and `bundleContext`) and replaced with local variables where appropriate.
- Simplified `eventTopicFilter` initialization by using local `thingUID` variable.
- Applied pattern matching for `instanceof` to reduce explicit casting in `receive()` method.
- Cleaned up unused code and improved readability.
Signed-off-by: Oleg Andreych <kjiec4@gmail.com>
Copy file name to clipboardExpand all lines: bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/internal/module/handler/ThingStatusTriggerHandler.java
+3-7Lines changed: 3 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -57,31 +57,28 @@ public class ThingStatusTriggerHandler extends BaseTriggerModuleHandler implemen
0 commit comments