[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 <leosiepel@gmail.com>
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
jlaur
left a comment
There was a problem hiding this comment.
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 <jacob-github@vindvejr.dk> Signed-off-by: lsiepel <leosiepel@gmail.com>
…b/binding/tellstick/internal/core/TelldusCoreBridgeHandler.java Co-authored-by: Jacob Laursen <jacob-github@vindvejr.dk> Signed-off-by: lsiepel <leosiepel@gmail.com>
…b/binding/tellstick/internal/live/TelldusLiveDeviceController.java Co-authored-by: Jacob Laursen <jacob-github@vindvejr.dk> Signed-off-by: lsiepel <leosiepel@gmail.com>
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
jlaur
left a comment
There was a problem hiding this comment.
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 <jacob-github@vindvejr.dk> Signed-off-by: lsiepel <leosiepel@gmail.com>
…b/binding/tellstick/internal/core/TelldusCoreBridgeHandler.java Co-authored-by: Jacob Laursen <jacob-github@vindvejr.dk> Signed-off-by: lsiepel <leosiepel@gmail.com>
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
No functionality has changed, i think it is ready to go, but i lack a tellstick so it was not very well tested. |
jlaur
left a comment
There was a problem hiding this comment.
Only one thing left from new commit.
| eventHandler = new TellstickEventHandler(deviceList); | ||
| TellstickEventHandler eventHandler = this.eventHandler = new TellstickEventHandler(deviceList); | ||
| eventHandler.addListener(this); | ||
| this.eventHandler = eventHandler; |
There was a problem hiding this comment.
This is not needed anymore, since already assigned in line 180.
| this.eventHandler = eventHandler; |
There was a problem hiding this comment.
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. |
jlaur
left a comment
There was a problem hiding this comment.
LGTM. Let's give it some mileage with M1 and in parallel see if we can have it tested with 4.3.
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
Signed-off-by: Leo Siepel <leosiepel@gmail.com>