Skip to content

Properties passed to Feature.fromGeometry should be Nullable#815

Merged
osana merged 1 commit into
masterfrom
osana-fromGeometry
May 24, 2018
Merged

Properties passed to Feature.fromGeometry should be Nullable#815
osana merged 1 commit into
masterfrom
osana-fromGeometry

Conversation

@osana

@osana osana commented May 10, 2018

Copy link
Copy Markdown
Contributor

closes #813

@osana osana requested a review from cammace May 10, 2018 17:37
@@ -247,7 +247,10 @@ public static TypeAdapter<Feature> typeAdapter(Gson gson) {
* @since 1.0.0
*/

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Add annotation @Nullable as the return type

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I would argue that adding @nullable to toJson is not part of the scope of this Issue, is it?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

There are a couple of PRs regarding toJson - so I will address it then

@@ -247,7 +247,10 @@ public static TypeAdapter<Feature> typeAdapter(Gson gson) {
* @since 1.0.0
*/
public void addStringProperty(String key, String value) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

are these params nullable or non, annotate them?

@osana osana force-pushed the osana-fromGeometry branch 2 times, most recently from 26bce9f to 418dddc Compare May 23, 2018 06:05
@osana osana requested a review from tobrun May 23, 2018 14:01
@osana osana force-pushed the osana-fromGeometry branch from 418dddc to 9bd6168 Compare May 24, 2018 18:43
@osana osana merged commit c6cbe31 into master May 24, 2018
@osana osana deleted the osana-fromGeometry branch May 24, 2018 18:51
@osana osana mentioned this pull request May 31, 2018
13 tasks
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.

properties field in Feature.fromGeometry static factory methods should be @Nullable

5 participants