Skip to content

Conversation

@danesfeder
Copy link
Contributor

Closes #1706

@danesfeder danesfeder added ✓ ready for review backwards incompatible Requires a SEMVER major version change. labels Jan 28, 2019
@danesfeder danesfeder added this to the v0.28.0 milestone Jan 28, 2019
@danesfeder danesfeder self-assigned this Jan 28, 2019
@danesfeder danesfeder force-pushed the dan-annotation-plugin branch from fbeb65a to 7be8915 Compare January 28, 2019 16:41
import java.util.ArrayList;
import java.util.List;

class MapSymbolManager {
Copy link
Contributor

Choose a reason for hiding this comment

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

What about renaming this to be NavigationSymbolManager, to make it more clear that this is a Navigation wrapper for SymbolManager?

private final List<Symbol> mapMarkersSymbols = new ArrayList<>();
private final SymbolManager symbolManager;

MapSymbolManager(SymbolManager symbolManager) {
Copy link
Contributor

Choose a reason for hiding this comment

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

How about adding an overloaded constructor that takes the parameters needed to instantiate the SymbolManager to remove that extra step? i.e., MapSymbolManager(MapView mapView, MapboxMap mapboxMap) { this(new SymbolManager(mapView, mapboxMap, mapboxMap.getStyle())); }

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@devotaaabel are you speaking in terms of the work to do this in NavigationMapboxMap? The reason the SymbolManager is "injected" is for easier unit testing.

@danesfeder danesfeder force-pushed the dan-annotation-plugin branch from 7be8915 to 7ccbddd Compare January 28, 2019 17:46
@codecov-io
Copy link

codecov-io commented Jan 28, 2019

Codecov Report

Merging #1707 into master will increase coverage by 0.2%.
The diff coverage is 62.96%.

@@             Coverage Diff             @@
##             master    #1707     +/-   ##
===========================================
+ Coverage     29.16%   29.36%   +0.2%     
- Complexity      810      820     +10     
===========================================
  Files           202      203      +1     
  Lines          7913     7913             
  Branches        619      619             
===========================================
+ Hits           2308     2324     +16     
+ Misses         5384     5368     -16     
  Partials        221      221

@danesfeder danesfeder force-pushed the dan-annotation-plugin branch from 7ccbddd to 8e1a0b4 Compare January 29, 2019 16:35
@danesfeder
Copy link
Contributor Author

@devotaaabel this is ready for another round of review. I don't think it's necessary to push logic into a new constructor, then have another constructor for testing - if we can accomplish this in a cleaner manner, let's please discuss this further.

@danesfeder danesfeder merged commit 34c538b into master Jan 30, 2019
@danesfeder danesfeder deleted the dan-annotation-plugin branch January 30, 2019 15:21
@danesfeder danesfeder mentioned this pull request Jan 30, 2019
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backwards incompatible Requires a SEMVER major version change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants