Skip to content

Commit

Permalink
Prevent public access by making multi-db methods package-private
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-andersen committed Aug 23, 2022
1 parent d47861d commit 8fbc22f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public static FirebaseFirestore getInstance(@NonNull FirebaseApp app) {
* @returns The {@link FirebaseFirestore} instance of the provided app.
*/
@NonNull
public static FirebaseFirestore getInstance(@NonNull String database) {
static FirebaseFirestore getInstance(@NonNull String database) {
return getInstance(getDefaultFirebaseApp(), database);
}

Expand All @@ -166,7 +166,7 @@ public static FirebaseFirestore getInstance(@NonNull String database) {
* @returns The {@link FirebaseFirestore} instance of the provided app.
*/
@NonNull
public static FirebaseFirestore getInstance(@NonNull FirebaseApp app, @NonNull String database) {
static FirebaseFirestore getInstance(@NonNull FirebaseApp app, @NonNull String database) {
checkNotNull(app, "Provided FirebaseApp must not be null.");
checkNotNull(database, "Provided database name must not be null.");
FirestoreMultiDbComponent component = app.get(FirestoreMultiDbComponent.class);
Expand Down

0 comments on commit 8fbc22f

Please sign in to comment.