forked from Azure/azure-sdk-for-java
-
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.
Branch adding custom annotation and demonstration of functionality in Azure core class ReferenceManagerImpl.java Potential workaround for Azure#36275
- Loading branch information
Showing
3 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
sdk/core/azure-core/src/main/java/com/azure/core/annotation/Android.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 @@ | ||
package com.azure.core.annotation; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import static java.lang.annotation.RetentionPolicy.CLASS; | ||
import java.lang.annotation.Target; | ||
|
||
/** | ||
* Annotation to annotate an Android api 26+ compatible method to be ignored by animal-sniffer. | ||
**/ | ||
|
||
@Retention(CLASS) | ||
@Target({ElementType.METHOD, ElementType.CONSTRUCTOR, ElementType.TYPE, ElementType.FIELD}) | ||
public @interface Android | ||
{ | ||
} |
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