-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[tellstick] Add null annotations #17974
Conversation
lsiepel
commented
Dec 24, 2024
- Add null annotations
- Fixed most warnings as a result of adding null annotations.
Signed-off-by: Leo Siepel <[email protected]>
Signed-off-by: Leo Siepel <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing the annotations and warnings. Can you rebase to make the dependency upgrades disappear? 🙂
...ick/src/main/java/org/openhab/binding/tellstick/internal/conf/TelldusLocalConfiguration.java
Outdated
Show resolved
Hide resolved
...tick/src/main/java/org/openhab/binding/tellstick/internal/core/TelldusCoreBridgeHandler.java
Outdated
Show resolved
Hide resolved
...tick/src/main/java/org/openhab/binding/tellstick/internal/core/TelldusCoreBridgeHandler.java
Outdated
Show resolved
Hide resolved
...k/src/main/java/org/openhab/binding/tellstick/internal/core/TelldusCoreDeviceController.java
Outdated
Show resolved
Hide resolved
...tick/src/main/java/org/openhab/binding/tellstick/internal/live/TelldusLiveBridgeHandler.java
Outdated
Show resolved
Hide resolved
...k/src/main/java/org/openhab/binding/tellstick/internal/live/TelldusLiveDeviceController.java
Outdated
Show resolved
Hide resolved
…b/binding/tellstick/internal/core/TelldusCoreBridgeHandler.java Co-authored-by: Jacob Laursen <[email protected]> Signed-off-by: lsiepel <[email protected]>
…b/binding/tellstick/internal/core/TelldusCoreBridgeHandler.java Co-authored-by: Jacob Laursen <[email protected]> Signed-off-by: lsiepel <[email protected]>
…b/binding/tellstick/internal/live/TelldusLiveDeviceController.java Co-authored-by: Jacob Laursen <[email protected]> Signed-off-by: lsiepel <[email protected]>
Signed-off-by: Leo Siepel <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When checking changed files since my last review iteration, I found one bug. Other than that LGTM - I assume it's tested and ready to go?
...tick/src/main/java/org/openhab/binding/tellstick/internal/live/TelldusLiveBridgeHandler.java
Show resolved
Hide resolved
...k/src/main/java/org/openhab/binding/tellstick/internal/live/TelldusLiveDeviceController.java
Outdated
Show resolved
Hide resolved
...tick/src/main/java/org/openhab/binding/tellstick/internal/core/TelldusCoreBridgeHandler.java
Outdated
Show resolved
Hide resolved
…b/binding/tellstick/internal/live/TelldusLiveDeviceController.java Co-authored-by: Jacob Laursen <[email protected]> Signed-off-by: lsiepel <[email protected]>
…b/binding/tellstick/internal/core/TelldusCoreBridgeHandler.java Co-authored-by: Jacob Laursen <[email protected]> Signed-off-by: lsiepel <[email protected]>
Signed-off-by: Leo Siepel <[email protected]>
No functionality has changed, i think it is ready to go, but i lack a tellstick so it was not very well tested. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only one thing left from new commit.
eventHandler.addListener(this); | ||
this.eventHandler = eventHandler; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not needed anymore, since already assigned in line 180.
this.eventHandler = eventHandler; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I forgot about this when merging, but it's quite minor.
@jannegpriv, @ulfwin - I found some relatively recent PR's from you for this binding, perhaps you'd like to give this a test run if @lsiepel could do a 4.3.x build for production use? |
Not sure if this is going to work, but give it a try: |
It probably would need to be cherry-picked on top of |
I can give it a try, if I get some help. It seems to be a general change, so the fact that I'm not using the Telldus Live bridge is fine, right? Also, I guess I need to update to the latest openhab? I would need to do that in a controlled manner, so it might take some extra time. |
Which version are you running now? It should be easy to create a JAR for 4.3. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Let's give it some mileage with M1 and in parallel see if we can have it tested with 4.3.