Skip to content
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 null annotations to registries #1134

Merged
merged 1 commit into from
Oct 23, 2019

Conversation

wborn
Copy link
Member

@wborn wborn commented Oct 16, 2019

Adds null annotations to all registries, the interfaces they implement and a few other classes.


There's also a PR to update the add-ons for this: https://github.com/openhab/openhab2-addons/pull/6233

@wborn wborn force-pushed the registries-null-annotations branch 2 times, most recently from 0ea8d24 to d0f8846 Compare October 18, 2019 21:20
Copy link
Contributor

@cweitkamp cweitkamp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could not yet do a full review but stumbled across some parts of this too while annotating the org.openhab.core.config.core bundle which I would like to discuss with you (see my latest PR #1152).

@wborn wborn force-pushed the registries-null-annotations branch 2 times, most recently from a2205a8 to e6501c9 Compare October 20, 2019 08:51
Copy link
Contributor

@cweitkamp cweitkamp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did a full review and now I understand the challenge with this. Took quite some time. I added some minor remarks and have to ask the same question regarding the bundle like before for the ConfigDescriptionI18nUtil.

@wborn wborn force-pushed the registries-null-annotations branch from aa935b4 to 132a671 Compare October 22, 2019 19:27
Adds null annotations to all registries, the interfaces they implement and a few other classes.

Also-by: Christoph Weitkamp <github@christophweitkamp.de>
Signed-off-by: Wouter Born <github@maindrain.net>
@wborn wborn force-pushed the registries-null-annotations branch from 132a671 to f833408 Compare October 22, 2019 20:04
Copy link
Contributor

@cweitkamp cweitkamp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Great job. Thanks.

@wborn wborn added rebuild Triggers the Jenkins PR build and removed rebuild Triggers the Jenkins PR build labels Oct 22, 2019
@cweitkamp cweitkamp merged commit 2430256 into openhab:master Oct 23, 2019
@cweitkamp cweitkamp added this to the 2.5 milestone Oct 23, 2019
@@ -406,6 +399,7 @@ protected Bundle getBundle(String uid) {
uri = new URI(prefix + ":" + uid + ".name");
} catch (URISyntaxException e) {
logger.error("Constructed invalid uri '{}:{}.name'", prefix, uid, e);
return Collections.emptyList();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wborn wborn deleted the registries-null-annotations branch December 8, 2019 23:19
splatch pushed a commit to ConnectorIO/copybara-hab-core that referenced this pull request Jul 11, 2023
Adds null annotations to all registries, the interfaces they implement and a few other classes.

Also-by: Christoph Weitkamp <github@christophweitkamp.de>
Signed-off-by: Wouter Born <github@maindrain.net>
GitOrigin-RevId: 2430256
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants