What are some examples of „public annotation types“?

I believe the intention here is to capture annotations that are used in similar ways to the other’s listed. @CedricChampeau can confirm this interpretation.

To reword it a bit…

  • types used in super classes or interfaces => your library requires consumers to extend a particular class or implement a particular interface from the dependency
  • types used in public method parameters, including generic parameter types => your library requires a consumer to use particular types to call library methods or use the results of library methods
  • types used in public fields => similar to above, only for a field
  • public annotation types => your library requires a consumer to use a particular annotation
1 Like