-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance OpenSearch APIs annotation processor with OpenSearch version …
…validation (#15502) Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
- Loading branch information
Showing
4 changed files
with
128 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...t/resources/org/opensearch/common/annotation/processor/PublicApiAnnotatedUnparseable.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* The OpenSearch Contributors require contributions made to | ||
* this file be licensed under the Apache-2.0 license or a | ||
* compatible open source license. | ||
*/ | ||
|
||
package org.opensearch.common.annotation.processor; | ||
|
||
import org.opensearch.common.annotation.PublicApi; | ||
|
||
@PublicApi(since = "2.x") | ||
public class PublicApiAnnotatedUnparseable { | ||
|
||
} |
20 changes: 20 additions & 0 deletions
20
...esources/org/opensearch/common/annotation/processor/PublicApiWithDeprecatedApiMethod.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* The OpenSearch Contributors require contributions made to | ||
* this file be licensed under the Apache-2.0 license or a | ||
* compatible open source license. | ||
*/ | ||
|
||
package org.opensearch.common.annotation.processor; | ||
|
||
import org.opensearch.common.annotation.DeprecatedApi; | ||
import org.opensearch.common.annotation.PublicApi; | ||
|
||
@PublicApi(since = "1.0.0") | ||
public class PublicApiWithDeprecatedApiMethod { | ||
@DeprecatedApi(since = "0.1.0") | ||
public void method() { | ||
|
||
} | ||
} |