Skip to content

Commit

Permalink
[BWC and API enforcement] Extend the element types the initial set of…
Browse files Browse the repository at this point in the history
… annotations could be applied to

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
  • Loading branch information
reta committed Aug 14, 2023
1 parent 51492f2 commit 2eb57ab
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,15 @@
* @opensearch.api
*/
@Documented
@Target({ ElementType.TYPE, ElementType.PACKAGE, ElementType.METHOD, ElementType.CONSTRUCTOR })
@Target({
ElementType.TYPE,
ElementType.PACKAGE,
ElementType.METHOD,
ElementType.CONSTRUCTOR,
ElementType.PARAMETER,
ElementType.FIELD,
ElementType.ANNOTATION_TYPE,
ElementType.MODULE })
@PublicApi(since = "2.10.0")
public @interface DeprecatedApi {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,15 @@
* @opensearch.api
*/
@Documented
@Target({ ElementType.TYPE, ElementType.PACKAGE, ElementType.METHOD, ElementType.CONSTRUCTOR })
@Target({
ElementType.TYPE,
ElementType.PACKAGE,
ElementType.METHOD,
ElementType.CONSTRUCTOR,
ElementType.PARAMETER,
ElementType.FIELD,
ElementType.ANNOTATION_TYPE,
ElementType.MODULE })
@PublicApi(since = "2.10.0")
public @interface ExperimentalApi {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,15 @@
* @opensearch.api
*/
@Documented
@Target({ ElementType.TYPE, ElementType.PACKAGE, ElementType.METHOD, ElementType.CONSTRUCTOR })
@Target({
ElementType.TYPE,
ElementType.PACKAGE,
ElementType.METHOD,
ElementType.CONSTRUCTOR,
ElementType.PARAMETER,
ElementType.FIELD,
ElementType.ANNOTATION_TYPE,
ElementType.MODULE })
@PublicApi(since = "2.10.0")
public @interface InternalApi {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,15 @@
* @opensearch.api
*/
@Documented
@Target({ ElementType.TYPE, ElementType.PACKAGE, ElementType.METHOD, ElementType.CONSTRUCTOR })
@Target({
ElementType.TYPE,
ElementType.PACKAGE,
ElementType.METHOD,
ElementType.CONSTRUCTOR,
ElementType.PARAMETER,
ElementType.FIELD,
ElementType.ANNOTATION_TYPE,
ElementType.MODULE })
@PublicApi(since = "2.10.0")
public @interface PublicApi {
/**
Expand Down

0 comments on commit 2eb57ab

Please sign in to comment.