Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jun 29, 2022. It is now read-only.

Commit6e507af

Browse files
NunuMhiranya911
authored andcommitted
Change addAllTokens argument data type from List to Collection (fireb… (firebase#281)
* Change addAllTokens argument data type from List to Collection (firebase#280)* Fix Javadoc comment to reflect method argument type
1 parent6497577 commit6e507af

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

‎src/main/java/com/google/firebase/messaging/MulticastMessage.java‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
importcom.google.common.collect.ImmutableList;
2323
importcom.google.common.collect.ImmutableMap;
2424
importcom.google.firebase.internal.NonNull;
25+
26+
importjava.util.Collection;
2527
importjava.util.HashMap;
2628
importjava.util.List;
2729
importjava.util.Map;
@@ -113,13 +115,13 @@ public Builder addToken(@NonNull String token) {
113115
}
114116

115117
/**
116-
* Adds alist of tokens to which the message should be sent. Up to 100 tokens can be
118+
* Adds acollection of tokens to which the message should be sent. Up to 100 tokens can be
117119
* specified on a single instance of {@link MulticastMessage}.
118120
*
119-
* @param tokensList of Firebase device registration tokens.
121+
* @param tokensCollection of Firebase device registration tokens.
120122
* @return This builder.
121123
*/
122-
publicBuilderaddAllTokens(@NonNullList<String>tokens) {
124+
publicBuilderaddAllTokens(@NonNullCollection<String>tokens) {
123125
this.tokens.addAll(tokens);
124126
returnthis;
125127
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp