JetBrains / JetBrains/java-annotations
add VisibleForReflection
- Lenguaje dominante
- Kotlin
- Estrellas
- 463
- Forks
- 72
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
So, I've been thinking about how one could warn a user that a constructor or method really only exists for reflective access. This is mostly an issue when dealing within the same package these days.
JPA for example requires a public/protected constructor. I personally am always going to use a protected one, but that still shouldn't be called outside of subclasses, or maybe tests.
So my thought is an annotation like `VisibleForReflection` would be nice.
Guía de contribución
Línea de trabajo
The issue names no source files, tests, or implementation entry point. First clarify the intended annotation behavior and warning mechanism, including how reflective access and legitimate subclasses or tests should be distinguished; done should include an agreed API and corresponding validation.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- kotlin
- Área
- tooling
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 30/100