Skip to content

Commit 9cd810d

Browse files
committed
Suppress lint warning about executors
1 parent 5e38374 commit 9cd810d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

firebase-appdistribution/src/main/java/com/google/firebase/appdistribution/impl/FirebaseAppDistributionRegistrar.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
package com.google.firebase.appdistribution.impl;
1616

17+
import android.annotation.SuppressLint;
1718
import android.app.Application;
1819
import android.content.Context;
1920
import androidx.annotation.Keep;
@@ -82,6 +83,8 @@ private FeedbackSender buildFeedbackSender(
8283
return new FeedbackSender(testerApiClient, blockingExecutor);
8384
}
8485

86+
// TODO(b/258264924): Migrate to go/firebase-android-executors
87+
@SuppressLint("ThreadPoolCreation")
8588
private FirebaseAppDistribution buildFirebaseAppDistribution(
8689
ComponentContainer container, Executor blockingExecutor) {
8790
FirebaseApp firebaseApp = container.get(FirebaseApp.class);

firebase-appdistribution/src/main/java/com/google/firebase/appdistribution/impl/ScreenshotTaker.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
package com.google.firebase.appdistribution.impl;
1616

17+
import android.annotation.SuppressLint;
1718
import android.annotation.TargetApi;
1819
import android.app.Activity;
1920
import android.content.Context;
@@ -48,6 +49,8 @@ class ScreenshotTaker {
4849
private final FirebaseAppDistributionLifecycleNotifier lifecycleNotifier;
4950
private final Executor taskExecutor;
5051

52+
// TODO(b/258264924): Migrate to go/firebase-android-executors
53+
@SuppressLint("ThreadPoolCreation")
5154
ScreenshotTaker(
5255
FirebaseApp firebaseApp, FirebaseAppDistributionLifecycleNotifier lifecycleNotifier) {
5356
this(firebaseApp, lifecycleNotifier, Executors.newSingleThreadExecutor());

0 commit comments

Comments
 (0)