Added TYPE_USE target to WeakOuter so anonymous classes can be annotated.
Change on 2019/02/14 by tball
/*
- * Copyright 2012 Google Inc. All Rights Reserved.
- *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@ -18,6 +16,7 @@ package com.google.j2objc.annotations;
import static java.lang.annotation.ElementType.LOCAL_VARIABLE;
import static java.lang.annotation.ElementType.TYPE;
+import static java.lang.annotation.ElementType.TYPE_USE;
import static java.lang.annotation.RetentionPolicy.SOURCE;
import java.lang.annotation.Retention;
@@ -32,7 +31,7 @@ import java.lang.annotation.Target;
*
* @author Tom Ball
*/
-@Target({TYPE, LOCAL_VARIABLE})
+@Target({TYPE, TYPE_USE, LOCAL_VARIABLE})
@Retention(SOURCE)
public @interface WeakOuter {
}
