Skip to content

fix: address lint, compiler, and Error Prone warnings#1692

Merged
dkhawk merged 1 commit into
googlemaps:mainfrom
dkhawk:fix/address-lint-issues
May 26, 2026
Merged

fix: address lint, compiler, and Error Prone warnings#1692
dkhawk merged 1 commit into
googlemaps:mainfrom
dkhawk:fix/address-lint-issues

Conversation

@dkhawk
Copy link
Copy Markdown
Contributor

@dkhawk dkhawk commented May 26, 2026

Addresses various lint, compiler (generics/rawtypes), and Error Prone warnings across DefaultAdvancedMarkersClusterRenderer, DefaultClusterRenderer, KmlLayer, KmlRenderer, and GeoJsonLayer.

These changes ensure clean compile hygiene and safety under modern generics and strict locking checks.

- Add missing `@Override` annotations to `RenderTask#run` and KML/GeoJSON Layer methods.
- Resolve `LockNotBeforeTry` warnings in clustering renderers by moving lock acquisition outside of `try` blocks and ensuring release inside `finally` blocks.
- Specify `Locale.ROOT` for filename casing comparisons in `KmlLayer` to satisfy `StringCaseLocaleUsage`.
- Refactor KML ground overlay mapping to collect updates before applying, preventing ConcurrentModificationExceptions during iteration.
- Sort imports in `KmlLayer` alphabetically to satisfy strict Checkstyle `ImportOrder` checks.
- Address generic rawtype compiler warnings by cleaning up `KmlContainerParser` generics and using safe suppression in `GeoJsonLayer`.
@dkhawk dkhawk requested a review from kikoso May 26, 2026 15:34
Copy link
Copy Markdown
Collaborator

@kikoso kikoso left a comment

Choose a reason for hiding this comment

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

LGTM

@dkhawk dkhawk merged commit ce809c7 into googlemaps:main May 26, 2026
10 of 13 checks passed
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.

2 participants