forked from opensearch-project/OpenSearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow @internalapi annotation on classes not meant to be constructed …
…outside of the OpenSearch core (opensearch-project#14575) Signed-off-by: Andriy Redko <[email protected]> (cherry picked from commit 391dee2)
- Loading branch information
Showing
4 changed files
with
37 additions
and
2 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
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
21 changes: 21 additions & 0 deletions
21
.../org/opensearch/common/annotation/processor/PublicApiConstructorAnnotatedInternalApi.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,21 @@ | ||
/* | ||
* 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.InternalApi; | ||
import org.opensearch.common.annotation.PublicApi; | ||
|
||
@PublicApi(since = "1.0.0") | ||
public class PublicApiConstructorAnnotatedInternalApi { | ||
/** | ||
* The constructors have relaxed semantics at the moment: those could be not annotated or be annotated as {@link InternalApi} | ||
*/ | ||
@InternalApi | ||
public PublicApiConstructorAnnotatedInternalApi(NotAnnotated arg) {} | ||
} |