Skip to content

Adds annotations and test for polylineUtils#687

Merged
cammace merged 2 commits intomasterfrom
cam-633
Dec 13, 2017
Merged

Adds annotations and test for polylineUtils#687
cammace merged 2 commits intomasterfrom
cam-633

Conversation

@cammace
Copy link

@cammace cammace commented Dec 11, 2017

Closes #633

Even with an empty list or path string, the returned results for all PolylineUtils results in a nonnull value, thus annotating the methods will help developers know they can skip over this check.

@cammace cammace added this to the v3.0.0 milestone Dec 11, 2017
@cammace cammace self-assigned this Dec 11, 2017
@cammace cammace requested review from osana and zugaldia December 11, 2017 19:29
assertEquals("Wrong length.", expectedLength, latLngs.size());

Point lastPoint = latLngs.get(expectedLength - 1);
expectNearNumber(37.76953, lastPoint.latitude(), 1e-6);
Copy link
Contributor

Choose a reason for hiding this comment

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

should we use a Constants.PRECISION_6 ?

Copy link
Author

Choose a reason for hiding this comment

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

The TEST_LINE was originally written for precision 5 a long, long time ago ;)

@cammace cammace merged commit 113a6b4 into master Dec 13, 2017
@cammace cammace deleted the cam-633 branch December 13, 2017 16:25
@cammace cammace mentioned this pull request Jan 22, 2018
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants