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

removed AutoValue from geoJson #953

Merged
merged 2 commits into from
Mar 4, 2019
Merged

removed AutoValue from geoJson #953

merged 2 commits into from
Mar 4, 2019

Conversation

osana
Copy link
Contributor

@osana osana commented Jan 16, 2019

address #710

@osana osana force-pushed the osana-remove-autovalue branch 7 times, most recently from 0be9ee7 to e408e19 Compare February 4, 2019 22:44
@osana osana force-pushed the osana-remove-autovalue branch 4 times, most recently from a65ac1e to 17b3b63 Compare February 7, 2019 19:51
@osana osana requested a review from tobrun February 7, 2019 19:54
Copy link
Member

@tobrun tobrun left a comment

Choose a reason for hiding this comment

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

Great progress @osana!

Copy link
Member

@LukasPaczos LukasPaczos left a comment

Choose a reason for hiding this comment

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

Looks good!
I had a bunch of nitpicks lined up like code styling or suppressing non-existent warnings, but those should get caught with an improved checkstyle and not block this PR. We should try and merge these changes as soon as possible so that we can fully test them as a part of the upcoming Maps SDK v7.3.0 release train.

protected List<Double> readPointList(JsonReader in) throws IOException {

if (in.peek() == JsonToken.NULL) {
throw new NullPointerException();
Copy link
Member

Choose a reason for hiding this comment

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

Can we return null here to print a more detailed from the calling method?

this.boundingBoxAdapter = new BoundingBoxTypeAdapter();
}

@SuppressWarnings("unchecked")
Copy link
Member

Choose a reason for hiding this comment

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

There's no warning to suppress.

}

@Override
@SuppressWarnings("unchecked")
Copy link
Member

Choose a reason for hiding this comment

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

Same as above.

}

@Override
@SuppressWarnings("unchecked")
Copy link
Member

Choose a reason for hiding this comment

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

Same as above.

}

@Override
@SuppressWarnings("unchecked")
Copy link
Member

Choose a reason for hiding this comment

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

Same as above.

}

@Override
@SuppressWarnings("unchecked")
Copy link
Member

Choose a reason for hiding this comment

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

Same as above.

}

@Override
@SuppressWarnings("unchecked")
Copy link
Member

Choose a reason for hiding this comment

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

Same as above.

/**
* Adapter to read and write coordinates for Point class.
*
* @since 4.1.0
Copy link
Member

Choose a reason for hiding this comment

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

This should be 4.4.0.

import java.util.List;

/**
* Adapter to read and write coordinates for Point class.
Copy link
Member

Choose a reason for hiding this comment

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

This should mention BoundingBox class.

osana added 2 commits March 4, 2019 13:28
BoundingBoxDeserializer and BoundingBoxSerializer,
GeometryDeserializer
in favor of TypeAdapters
@osana osana merged commit 82837f3 into master Mar 4, 2019
@osana osana deleted the osana-remove-autovalue branch March 4, 2019 20:38
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.

3 participants