JetBrains / JetBrains/java-annotations

@TestOnly should be allowed for ElementType.PACKAGE

Open Beginner friendly
#123 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
463
Forks
72
PR merge metrics
No merged PRs in 30d

Description

I have a maven module which should only be used for tests in other modules.

Therefore, it would be very useful to be able to provide the package with `@TestOnly` in a `package-info.java` and not to provide every single class of the module with it.

Contributor guide

Open the contributing guide

Research direction

Start by reading the @TestOnly declaration and its ElementType targets. Check how package-info.java can apply the annotation, then verify that package-level use is accepted and the existing project checks pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
tooling
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.