diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-03-11 00:28:37 -0600 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-03-11 00:29:18 -0600 |
commit | 56f2dcc07319d870f8ca3497562db543b84bce76 (patch) | |
tree | 8df497033df870105812971588d3fffd24b0b04e /tunnel/src/main/java/com/wireguard/util | |
parent | 48739b41412e4328456f05894f2f0ff2a8f80d1c (diff) |
tunnel: add javadoc support
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'tunnel/src/main/java/com/wireguard/util')
-rw-r--r-- | tunnel/src/main/java/com/wireguard/util/NonNullForAll.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tunnel/src/main/java/com/wireguard/util/NonNullForAll.java b/tunnel/src/main/java/com/wireguard/util/NonNullForAll.java index 2c2d9400..eb5b683f 100644 --- a/tunnel/src/main/java/com/wireguard/util/NonNullForAll.java +++ b/tunnel/src/main/java/com/wireguard/util/NonNullForAll.java @@ -5,7 +5,6 @@ package com.wireguard.util; -import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; @@ -13,12 +12,15 @@ import java.lang.annotation.RetentionPolicy; import javax.annotation.Nonnull; import javax.annotation.meta.TypeQualifierDefault; +import androidx.annotation.RestrictTo; +import androidx.annotation.RestrictTo.Scope; + /** * This annotation can be applied to a package, class or method to indicate that all * class fields and method parameters and return values in that element are nonnull * by default unless overridden. */ -@Documented +@RestrictTo(Scope.LIBRARY_GROUP) @Nonnull @TypeQualifierDefault({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER}) @Retention(RetentionPolicy.RUNTIME) |