8000 S1186: Ignore empty methods with @CacheEvict annotation by julianladisch · Pull Request #5144 · SonarSource/sonar-java · GitHub
[go: up one dir, main page]

Skip to content

S1186: Ignore empty methods with @CacheEvict annotation #5144

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

julianladisch
Copy link
Contributor

Methods with the @org.springframework.cache.annotation.CacheEvict annotation usually are empty. Examples:

Therefore S1186 should not complain about those empty methods and should ignore them.

Methods with the `@org.springframework.cache.annotation.CacheEvict`
annotation usually are empty. Examples:

* https://www.baeldung.com/spring-boot-evict-cache#1-using-cacheevict
* https://java2practice.com/2013/03/23/spring-cacheable-and-cacheevict-explained-in-simple-terms/

Therefore S1186 should not complain about those empty methods and should ignore them.
Copy link
Contributor

This PR is stale because it has been open 7 days with no activity. If there is no activity in the next 7 days it will be closed automatically

@github-actions github-actions bot added the stale label May 19, 2025
@julianladisch
Copy link
Contributor Author

remove stale

@github-actions github-actions bot removed the stale label May 21, 2025
Copy link
Contributor

This PR is stale because it has been open 7 days with no activity. If there is no activity in the next 7 days it will be closed automatically

@github-actions github-actions bot added the stale label May 28, 2025
@julianladisch
Copy link
Contributor Author

remove stale

@github-actions github-actions bot removed the stale label May 29, 2025
Copy link
Contributor
github-actions bot commented Jun 5, 2025

This PR is stale because it has been open 7 days with no activity. If there is no activity in the next 7 days it will be closed automatically

@github-actions github-actions bot added the stale label Jun 5, 2025
@julianladisch
Copy link
Contributor Author

IndexedDB

@github-actions github-actions bot removed the stale label Jun 6, 2025
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.

1 participant
0