Adds TYPE_USE to com.google.j2objc.annotations.Weak's targets. PiperOrigin-RevId: 384503231
diff --git a/annotations/src/main/java/com/google/j2objc/annotations/Weak.java b/annotations/src/main/java/com/google/j2objc/annotations/Weak.java index bfee126..c06a491 100644 --- a/annotations/src/main/java/com/google/j2objc/annotations/Weak.java +++ b/annotations/src/main/java/com/google/j2objc/annotations/Weak.java
@@ -19,6 +19,7 @@ import static java.lang.annotation.ElementType.FIELD; import static java.lang.annotation.ElementType.LOCAL_VARIABLE; import static java.lang.annotation.ElementType.PARAMETER; +import static java.lang.annotation.ElementType.TYPE_USE; import static java.lang.annotation.RetentionPolicy.CLASS; import java.lang.annotation.Retention; @@ -27,11 +28,11 @@ /** * Annotation that indicates a variable has a weak relationship to its owner. The variable will be - * declared with the __unsafe_unretained annotation. + * declared with the Objective-C __weak annotation. * * @author Tom Ball */ -@Target({FIELD, LOCAL_VARIABLE, PARAMETER}) +@Target({FIELD, LOCAL_VARIABLE, PARAMETER, TYPE_USE}) @Retention(CLASS) public @interface Weak { }