Skip to content

Commit 370b862

Browse files
committed
Fixing formattinf issues.
1 parent e179da7 commit 370b862

File tree

5 files changed

+90
-94
lines changed

5 files changed

+90
-94
lines changed

firebase-installations-interop/src/main/java/com/google/firebase/installations/FirebaseInstallationsApi.java

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,19 @@
2424
*/
2525
public interface FirebaseInstallationsApi {
2626

27-
/**
28-
* Async function that returns a globally unique identifier of this Firebase app installation.
29-
* This is a url-safe base64 string of a 128-bit integer.
30-
*/
31-
Task<String> getId();
27+
/**
28+
* Async function that returns a globally unique identifier of this Firebase app installation.
29+
* This is a url-safe base64 string of a 128-bit integer.
30+
*/
31+
Task<String> getId();
3232

33-
/** Async function that returns a auth token(public key) of this Firebase app installation. */
34-
Task<String> getAuthToken();
33+
/** Async function that returns a auth token(public key) of this Firebase app installation. */
34+
Task<String> getAuthToken();
3535

36-
/**
37-
* Async function that deletes this Firebase app installation from Firebase backend. This call
38-
* would possibly lead Firebase Notification, Firebase RemoteConfig, Firebase Predictions or
39-
* Firebase In-App Messaging not function properly.
40-
*/
41-
Task<Void> delete();
42-
}
36+
/**
37+
* Async function that deletes this Firebase app installation from Firebase backend. This call
38+
* would possibly lead Firebase Notification, Firebase RemoteConfig, Firebase Predictions or
39+
* Firebase In-App Messaging not function properly.
40+
*/
41+
Task<Void> delete();
42+
}

firebase-installations/src/main/java/com/google/firebase/installations/FirebaseInstallations.java

Lines changed: 64 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -35,76 +35,76 @@
3535
*/
3636
public class FirebaseInstallations implements FirebaseInstallationsApi {
3737

38-
private final OkHttpClient httpClient;
38+
private final OkHttpClient httpClient;
3939

40-
private final FirebaseApp firebaseApp;
40+
private final FirebaseApp firebaseApp;
4141

42-
/** package private constructor. */
43-
FirebaseInstallations(FirebaseApp firebaseApp) {
44-
this.firebaseApp = firebaseApp;
45-
httpClient = new OkHttpClient();
46-
}
42+
/** package private constructor. */
43+
FirebaseInstallations(FirebaseApp firebaseApp) {
44+
this.firebaseApp = firebaseApp;
45+
httpClient = new OkHttpClient();
46+
}
4747

48-
/**
49-
* Returns the {@link FirebaseInstallationsApi} initialized with the default {@link FirebaseApp}.
50-
*
51-
* @return a {@link FirebaseInstallationsApi} instance
52-
*/
53-
@NonNull
54-
public static FirebaseInstallations getInstance() {
55-
FirebaseApp defaultFirebaseApp = FirebaseApp.getInstance();
56-
return getInstance(defaultFirebaseApp);
57-
}
48+
/**
49+
* Returns the {@link FirebaseInstallationsApi} initialized with the default {@link FirebaseApp}.
50+
*
51+
* @return a {@link FirebaseInstallationsApi} instance
52+
*/
53+
@NonNull
54+
public static FirebaseInstallations getInstance() {
55+
FirebaseApp defaultFirebaseApp = FirebaseApp.getInstance();
56+
return getInstance(defaultFirebaseApp);
57+
}
5858

59-
/**
60-
* Returns the {@link FirebaseInstallations} initialized with a custom {@link FirebaseApp}.
61-
*
62-
* @param app a custom {@link FirebaseApp}
63-
* @return a {@link FirebaseInstallations} instance
64-
*/
65-
@NonNull
66-
public static FirebaseInstallations getInstance(@NonNull FirebaseApp app) {
67-
Preconditions.checkArgument(app != null, "Null is not a valid value of FirebaseApp.");
68-
return (FirebaseInstallations) app.get(FirebaseInstallationsApi.class);
69-
}
59+
/**
60+
* Returns the {@link FirebaseInstallations} initialized with a custom {@link FirebaseApp}.
61+
*
62+
* @param app a custom {@link FirebaseApp}
63+
* @return a {@link FirebaseInstallations} instance
64+
*/
65+
@NonNull
66+
public static FirebaseInstallations getInstance(@NonNull FirebaseApp app) {
67+
Preconditions.checkArgument(app != null, "Null is not a valid value of FirebaseApp.");
68+
return (FirebaseInstallations) app.get(FirebaseInstallationsApi.class);
69+
}
7070

71-
/**
72-
* Returns a globally unique identifier of this Firebase app installation. This is a url-safe
73-
* base64 string of a 128-bit integer.
74-
*/
75-
@NonNull
76-
@Override
77-
public Task<String> getId() {
78-
return Tasks.forResult("fid-is-better-than-iid");
79-
}
71+
/**
72+
* Returns a globally unique identifier of this Firebase app installation. This is a url-safe
73+
* base64 string of a 128-bit integer.
74+
*/
75+
@NonNull
76+
@Override
77+
public Task<String> getId() {
78+
return Tasks.forResult("fid-is-better-than-iid");
79+
}
8080

81-
/** Returns a auth token(public key) of this Firebase app installation. */
82-
@NonNull
83-
@Override
84-
public Task<String> getAuthToken() {
85-
return Tasks.forResult("dummy_auth_token");
86-
}
81+
/** Returns a auth token(public key) of this Firebase app installation. */
82+
@NonNull
83+
@Override
84+
public Task<String> getAuthToken() {
85+
return Tasks.forResult("dummy_auth_token");
86+
}
8787

88-
/**
89-
* Call to delete this Firebase app installation from Firebase backend. This call would possibly
90-
* lead Firebase Notification, Firebase RemoteConfig, Firebase Predictions or Firebase In-App
91-
* Messaging not function properly.
92-
*/
93-
@NonNull
94-
@Override
95-
public Task<Void> delete() {
96-
return Tasks.forResult(null);
97-
}
88+
/**
89+
* Call to delete this Firebase app installation from Firebase backend. This call would possibly
90+
* lead Firebase Notification, Firebase RemoteConfig, Firebase Predictions or Firebase In-App
91+
* Messaging not function properly.
92+
*/
93+
@NonNull
94+
@Override
95+
public Task<Void> delete() {
96+
return Tasks.forResult(null);
97+
}
9898

99-
/** Returns the application id of the {@link FirebaseApp} of this {@link FirebaseInstallations} */
100-
@VisibleForTesting
101-
String getApplicationId() {
102-
return firebaseApp.getOptions().getApplicationId();
103-
}
99+
/** Returns the application id of the {@link FirebaseApp} of this {@link FirebaseInstallations} */
100+
@VisibleForTesting
101+
String getApplicationId() {
102+
return firebaseApp.getOptions().getApplicationId();
103+
}
104104

105-
/** Returns the nick name of the {@link FirebaseApp} of this {@link FirebaseInstallations} */
106-
@VisibleForTesting
107-
String getName() {
108-
return firebaseApp.getName();
109-
}
110-
}
105+
/** Returns the nick name of the {@link FirebaseApp} of this {@link FirebaseInstallations} */
106+
@VisibleForTesting
107+
String getName() {
108+
return firebaseApp.getName();
109+
}
110+
}

firebase-installations/src/main/java/com/google/firebase/installations/FirebaseInstallationsRegistrar.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@
2727
@Keep
2828
public class FirebaseInstallationsRegistrar implements ComponentRegistrar {
2929

30-
@Override
31-
public List<Component<?>> getComponents() {
32-
return Arrays.asList(
33-
Component.builder(FirebaseInstallationsApi.class)
34-
.add(Dependency.required(FirebaseApp.class))
35-
.factory(c -> new FirebaseInstallations(c.get(FirebaseApp.class)))
36-
.build(),
37-
LibraryVersionComponent.create("fire-installations", BuildConfig.VERSION_NAME));
38-
}
39-
}
30+
@Override
31+
public List<Component<?>> getComponents() {
32+
return Arrays.asList(
33+
Component.builder(FirebaseInstallationsApi.class)
34+
.add(Dependency.required(FirebaseApp.class))
35+
.factory(c -> new FirebaseInstallations(c.get(FirebaseApp.class)))
36+
.build(),
37+
LibraryVersionComponent.create("fire-installations", BuildConfig.VERSION_NAME));
38+
}
39+
}

firebase-installations/src/test/java/com/google/firebase/installations/FirebaseInstallationsRegistrarTest.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,4 @@
1515
package com.google.firebase.installations;
1616

1717
/** Tests for {@link FirebaseInstallationsRegistrar}. */
18-
public class FirebaseInstallationsRegistrarTest {
19-
20-
}
18+
public class FirebaseInstallationsRegistrarTest {}

firebase-installations/src/test/java/com/google/firebase/installations/FirebaseInstallationsTest.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,4 @@
1515
package com.google.firebase.installations;
1616

1717
/** Tests for {@link FirebaseInstallations}. */
18-
public class FirebaseInstallationsTest {
19-
20-
}
18+
public class FirebaseInstallationsTest {}

0 commit comments

Comments
 (0)