Skip to content

Commit e2a49a7

Browse files
committed
add more copyrights
1 parent e9909d1 commit e2a49a7

File tree

4 files changed

+47
-0
lines changed

4 files changed

+47
-0
lines changed

firebase-common/src/main/java/com/google/firebase/concurrent/DelegatingScheduledFuture.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,16 @@
1414

1515
package com.google.firebase.concurrent;
1616

17+
import android.annotation.SuppressLint;
1718
import androidx.concurrent.futures.AbstractResolvableFuture;
1819
import java.util.concurrent.Delayed;
1920
import java.util.concurrent.ScheduledFuture;
2021
import java.util.concurrent.TimeUnit;
2122

23+
// While direct use of AbstractResolvableFuture is not encouraged, it's stable for use and is not
24+
// going to be removed. In this case it's required since we need to implement a ScheduledFuture so
25+
// we can't use CallbackToFutureAdapter.
26+
@SuppressLint("RestrictedApi")
2227
class DelegatingScheduledFuture<V> extends AbstractResolvableFuture<V>
2328
implements ScheduledFuture<V> {
2429

firebase-common/src/test/java/com/google/firebase/concurrent/ExecutorComponent.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
// Copyright 2022 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
115
package com.google.firebase.concurrent;
216

317
import java.util.concurrent.Executor;

firebase-common/src/test/java/com/google/firebase/concurrent/ExecutorComponentTest.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
// Copyright 2022 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
115
package com.google.firebase.concurrent;
216

317
import static com.google.common.truth.Truth.assertThat;

firebase-common/src/test/java/com/google/firebase/concurrent/ExecutorTestsRegistrar.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
// Copyright 2022 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
115
package com.google.firebase.concurrent;
216

317
import com.google.firebase.annotations.concurrent.Background;

0 commit comments

Comments
 (0)