JetBrains / JetBrains/java-annotations
add VisibleForReflection
Aperta
- Lingua principale
- Kotlin
- Stelle
- 463
- Fork
- 72
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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.
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.