-
-
Notifications
You must be signed in to change notification settings - Fork 429
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
Add more null annotations to XML processing classes #2775
Conversation
This adds null annotations to many XML processing classes and a few others. Signed-off-by: Wouter Born <github@maindrain.net>
c2722ca
to
7bb1800
Compare
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, looks good from what I can see.
One final question, though, as you have added "API breaking" to the PR: I assume this concerns only APIs that are not being used by any (official) add-ons and thus it does not really have an impact. Is this correct?
Yes that's right. The add-ons are not impacted by this. I added the label because I removed the |
Thanks! |
return requireNonEmpty((String) nodeIterator.nextValue("item-type", false), | ||
"ChannelType 'itemType' must not be null or empty."); |
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.
return requireNonEmpty((String) nodeIterator.nextValue("item-type", false), | ||
"ChannelType 'itemType' must not be null or empty."); |
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.
Trigger channel types failed to load because the item type became required with the changes in openhab#2775. Also adds a unit test for the ThingDescriptionReader to prevent future regressions. Fixes openhab#2831 Signed-off-by: Wouter Born <github@maindrain.net>
This adds null annotations to many XML processing classes and a few others. Signed-off-by: Wouter Born <github@maindrain.net> GitOrigin-RevId: e6ddecc
Trigger channel types failed to load because the item type became required with the changes in openhab#2775. Also adds a unit test for the ThingDescriptionReader to prevent future regressions. Fixes openhab#2831 Signed-off-by: Wouter Born <github@maindrain.net> GitOrigin-RevId: 92a6c1c
This adds null annotations to many XML processing classes and a few others.