Skip to content
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

Introduce ScheduledTransactionTraceCheck #31

Merged
merged 1 commit into from
Jan 10, 2022

Conversation

Stephan202
Copy link
Member

No description provided.

Comment on lines +27 to +34
" @Scheduled(fixedDelay = 1)",
" // BUG: Diagnostic contains:",
" void scheduledButNotTraced() {}",
"",
" @Scheduled(fixedDelay = 1)",
" // BUG: Diagnostic contains:",
" @Trace",
" void scheduledButImproperlyTraced1() {}",
Copy link
Member Author

Choose a reason for hiding this comment

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

The warning is applied to the method if the annotation is absent, and to the annotation if present but incorrect.

Comment on lines +48 to +51
// XXX: Enable this test for all JREs once https://github.com/google/error-prone/pull/2820 is
// merged and released.
@Test
@DisabledForJreRange(min = JRE.JAVA_12)
Copy link
Member Author

Choose a reason for hiding this comment

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

For easy clicking: google/error-prone#2820.

@Stephan202 Stephan202 requested a review from rickie January 8, 2022 12:48
Copy link
Member

@rickie rickie left a comment

Choose a reason for hiding this comment

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

Looks good 🚀 !

@Stephan202 Stephan202 merged commit 73f8f05 into master Jan 10, 2022
@Stephan202 Stephan202 deleted the sschroevers/flag-untraced-scheduled-methods branch January 10, 2022 09:21
@Stephan202 Stephan202 added this to the 0.1.0 milestone Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants