Skip to content

Conversation

dkhawk
Copy link
Contributor

@dkhawk dkhawk commented Aug 6, 2025

  • Replaced a traditional switch statement with an enhanced switch expression in setAnimationType.
  • Added a setAnimationInterpolator method to allow custom interpolators.
  • Ensured lock.unlock() is always called in finally blocks within MarkerModifier and AnimationTask for better resource management.
  • Added @Override annotation to ViewModifier.run().

@dkhawk dkhawk requested a review from kikoso August 6, 2025 00:43
@googlemaps-bot
Copy link
Contributor

googlemaps-bot commented Aug 6, 2025

Code Coverage

Overall Project 36.67% -1.02% 🍏
Files changed 0%

File Coverage
ClusterRendererMultipleItems.java 0% -9.15%

}

public void setAnimationInterpolator(TimeInterpolator interpolator) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Being this a public method, worth considering adding a line of documentation to explain that it sets the Interpolator for the current animation.

@kikoso
Copy link
Collaborator

kikoso commented Aug 6, 2025

Would it make sense to add some of this changes (namely, overriding the run method and moving the lock.unlock within a try / finally block? We have the same in the other renderers.

Besides that, this changes make sense.

dkhawk added 2 commits August 27, 2025 12:58
…pleItems

- Replaced a traditional switch statement with an enhanced switch expression in `setAnimationType`.
- Added a `setAnimationInterpolator` method to allow custom interpolators.
- Ensured `lock.unlock()` is always called in `finally` blocks within `MarkerModifier` and `AnimationTask` for better resource management.
- Added `@Override` annotation to `ViewModifier.run()`.
This commit refactors the `MarkerModifier` class to use a `withLock` method. This reduces code repetition and improves readability.
@dkhawk dkhawk force-pushed the fix/linting-errors branch from 62f8e5b to 8e6890e Compare August 27, 2025 19:00
@dkhawk dkhawk merged commit f891ddf into main Aug 27, 2025
8 checks passed
@dkhawk dkhawk deleted the fix/linting-errors branch August 27, 2025 19:47
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.

3 participants