JetBrains / JetBrains/java-annotations

@TestOnly should be allowed for ElementType.PACKAGE

未关闭 适合新手
#123 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Kotlin
星标
463
派生
72
PR 合并指标
30 天内没有已合并 PR

描述

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.

贡献指南

打开贡献指南

调研方向

首先阅读 @TestOnly 声明及其 ElementType 目标。检查 package-info.java 如何应用该注解,然后验证包级别的使用已被接受,并且现有的项目检查通过。

由索引模型根据 Issue 内容生成。

评估

技术栈
java
领域
tooling
Issue 类型
功能
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
描述清楚
新手友好度
65/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。