-
-
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
[insteon] Prevent null values from being inferred when printing to console #12243
Conversation
…nsole This prevents the null analysis from inferring null values when printing to a Console. Related to openhab/openhab-core#2742 Signed-off-by: Wouter Born <[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.
lgtm
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!
@wborn - do I understand correctly that it's related to openhab/openhab-core#2742. but without any dependency, so ready for being merged? |
Yes it can already be merged. It prevents a compilation issue when openhab/openhab-core#2742 is merged eventually. I just rewrote the code to help the null analysis with inferring that the printed values are never null. If you operate on the entrySet of a map you'll never run into non-existing keys. |
…nsole (openhab#12243) This prevents the null analysis from inferring null values when printing to a Console. Related to openhab/openhab-core#2742 Signed-off-by: Wouter Born <[email protected]> Signed-off-by: Nick Waterton <[email protected]>
…nsole (openhab#12243) This prevents the null analysis from inferring null values when printing to a Console. Related to openhab/openhab-core#2742 Signed-off-by: Wouter Born <[email protected]>
…nsole (openhab#12243) This prevents the null analysis from inferring null values when printing to a Console. Related to openhab/openhab-core#2742 Signed-off-by: Wouter Born <[email protected]>
…nsole (openhab#12243) This prevents the null analysis from inferring null values when printing to a Console. Related to openhab/openhab-core#2742 Signed-off-by: Wouter Born <[email protected]> Signed-off-by: Andras Uhrin <[email protected]>
…nsole (openhab#12243) This prevents the null analysis from inferring null values when printing to a Console. Related to openhab/openhab-core#2742 Signed-off-by: Wouter Born <[email protected]>
This prevents the null analysis from inferring null values when printing to a Console.
Related to openhab/openhab-core#2742