Skip to content

Commit 6cee852

Browse files
committed
1 parent 8f529e4 commit 6cee852

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

firebase-abt/src/main/java/com/google/firebase/abt/FirebaseABTesting.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,10 @@
2020

2121
import android.content.Context;
2222
import androidx.annotation.Nullable;
23-
import androidx.annotation.StringDef;
2423
import androidx.annotation.VisibleForTesting;
2524
import androidx.annotation.WorkerThread;
2625
import com.google.firebase.analytics.connector.AnalyticsConnector;
2726
import com.google.firebase.analytics.connector.AnalyticsConnector.ConditionalUserProperty;
28-
import java.lang.annotation.Retention;
29-
import java.lang.annotation.RetentionPolicy;
3027
import java.util.ArrayDeque;
3128
import java.util.ArrayList;
3229
import java.util.Collection;
@@ -67,8 +64,9 @@ public class FirebaseABTesting {
6764
* Select keys of fields in the experiment descriptions returned from the Firebase Remote Config
6865
* server.
6966
*/
70-
@StringDef({REMOTE_CONFIG, INAPP_MESSAGING})
71-
@Retention(RetentionPolicy.SOURCE)
67+
// fully qualified use of annotations here due to https://bugs.openjdk.java.net/browse/JDK-8185328
68+
@androidx.annotation.StringDef({REMOTE_CONFIG, INAPP_MESSAGING})
69+
@java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE)
7270
public @interface OriginService {
7371

7472
/** Must match the origin code in Google Analytics for Firebase. */

0 commit comments

Comments
 (0)