-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[google_maps_flutter_android] Fix Android lint warnings #3751
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
Changes from 6 commits
aa2c409
56fb7f0
4e4c258
241ff6f
cbbd026
7e5277b
1128f17
4cbbc06
496560e
694eae4
4794b9b
d9a0c49
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,7 @@ | ||
| ## 2.4.11 | ||
|
|
||
| * Fixes Java warnings. | ||
|
|
||
| ## 2.4.10 | ||
|
|
||
| * Bump RoboElectric dependency to 4.4.1 to support AndroidX. | ||
|
|
||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,9 +18,9 @@ class TileProviderController implements TileProvider { | |
|
|
||
| private static final String TAG = "TileProviderController"; | ||
|
|
||
| private final String tileOverlayId; | ||
| private final MethodChannel methodChannel; | ||
| private final Handler handler = new Handler(Looper.getMainLooper()); | ||
| final String tileOverlayId; | ||
|
||
| final MethodChannel methodChannel; | ||
| final Handler handler = new Handler(Looper.getMainLooper()); | ||
|
|
||
| TileProviderController(MethodChannel methodChannel, String tileOverlayId) { | ||
| this.tileOverlayId = tileOverlayId; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For this and the other private changes in this file can you use a smaller scope than public? Specifically I think for all of these synthetic method calls you can use protected instead.
See https://stackoverflow.com/questions/4501324/synthetic-accessor-method-warning for more information.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! I restored the private scope modification in the GoogleMapController.java file, and after replacing the anonymous class GoogleMap.OnMapLoadedCallback() with a lambda expression, I confirmed that the synthetic-accessor warning no longer occurs. 4cbbc06