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 nullability annotations to Configuration #398

Merged

Conversation

fractalwrench
Copy link
Contributor

See #395 for an in-depth explanation.

@@ -336,7 +344,7 @@ public void setNotifyReleaseStages(@Nullable String[] notifyReleaseStages) {
*
* @param projectPackages a list of package names
*/
public void setProjectPackages(String[] projectPackages) {
public void setProjectPackages(@NonNull String[] projectPackages) {
Copy link
Contributor

Choose a reason for hiding this comment

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

the getter for this is @Nullable but the setter is @NonNull. As is get|setNotifyReleaseStages(…). Is this intentional? Can they be set to null elsewhere internally, but not via the setter?

Copy link
Contributor

@bengourley bengourley left a comment

Choose a reason for hiding this comment

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

LGTM, just one query inline.

@fractalwrench
Copy link
Contributor Author

Comments/remaining work will be addressed in #395

@fractalwrench fractalwrench merged commit 78e3df2 into resolve-unknown-nullness-issues Dec 13, 2018
@fractalwrench fractalwrench deleted the null-annotations-config branch December 13, 2018 14:13
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