Thanks to visit codestin.com
Credit goes to github.com

Skip to content

GROOVY-6526: annotations: compute allowed targets lazily#2388

Open
eric-milles wants to merge 1 commit intomasterfrom
GROOVY-6526
Open

GROOVY-6526: annotations: compute allowed targets lazily#2388
eric-milles wants to merge 1 commit intomasterfrom
GROOVY-6526

Conversation

@eric-milles
Copy link
Member

Move target checking from vmplugin to ast node. Only compute once per annotation type.

If this is okay, retention policy will follow.

@codecov-commenter
Copy link

codecov-commenter commented Mar 1, 2026

Codecov Report

❌ Patch coverage is 84.84848% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 66.7505%. Comparing base (71b6eb9) to head (62d0f8b).

Files with missing lines Patch % Lines
...n/java/org/codehaus/groovy/ast/AnnotationNode.java 86.2069% 1 Missing and 3 partials ⚠️
...in/java/org/codehaus/groovy/vmplugin/v8/Java8.java 75.0000% 0 Missing and 1 partial ⚠️
Additional details and impacted files

Impacted file tree graph

@@                Coverage Diff                 @@
##               master      #2388        +/-   ##
==================================================
- Coverage     66.7554%   66.7505%   -0.0049%     
- Complexity      29854      29867        +13     
==================================================
  Files            1382       1382                
  Lines          116136     116134         -2     
  Branches        20475      20477         +2     
==================================================
- Hits            77527      77520         -7     
- Misses          32277      32282         +5     
  Partials         6332       6332                
Files with missing lines Coverage Δ
...rg/codehaus/groovy/ast/decompiled/Annotations.java 89.8551% <ø> (-0.1449%) ⬇️
.../java/org/codehaus/groovy/vmplugin/v16/Java16.java 56.0000% <ø> (-3.2593%) ⬇️
...in/java/org/codehaus/groovy/vmplugin/v9/Java9.java 59.7222% <ø> (-0.5517%) ⬇️
...in/java/org/codehaus/groovy/vmplugin/v8/Java8.java 76.7296% <75.0000%> (-0.9830%) ⬇️
...n/java/org/codehaus/groovy/ast/AnnotationNode.java 75.2577% <86.2069%> (+2.0183%) ⬆️

... and 3 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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