Skip to content

Check for valid name property value in MapWayname#1031

Merged
danesfeder merged 1 commit into
masterfrom
dan-wayname-npe
Jun 15, 2018
Merged

Check for valid name property value in MapWayname#1031
danesfeder merged 1 commit into
masterfrom
dan-wayname-npe

Conversation

@danesfeder
Copy link
Copy Markdown
Contributor

Closes #1029

Copy link
Copy Markdown
Contributor

@Guardiola31337 Guardiola31337 left a comment

Choose a reason for hiding this comment

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

Minor thing not blocking the PR but definitely worth 👀

}

@Test
public void onFeatureWithoutNamePropertyReturned_updateIsIgnored() {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

❤️

@@ -71,12 +71,15 @@ private List<Feature> findRoadLabelFeatures(PointF point) {

private void updateLayerWithRoadLabelFeatures(List<Feature> roads, SymbolLayer waynameLayer) {
if (!roads.isEmpty()) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

IMO updateLayerWithRoadLabelFeatures is getting too long.
What about extracting blocks of code into well-named private methods and simplifying conditional expressions somehow?

@danesfeder danesfeder merged commit b48a348 into master Jun 15, 2018
@danesfeder danesfeder deleted the dan-wayname-npe branch June 15, 2018 17:12
@danesfeder danesfeder mentioned this pull request Jun 21, 2018
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Defect to be fixed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants