Skip to content

Commit 50aa47e

Browse files
authored
Change backticks to @code and @link in javadocs (firebase#140)
* Change backticks to @code and @link in javadocs
1 parent f83cdec commit 50aa47e

4 files changed

Lines changed: 15 additions & 14 deletions

File tree

src/main/java/com/google/firebase/auth/FirebaseAuth.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ public Void call() throws Exception {
259259
* <p>While this will revoke all sessions for a specified user and disable any new ID tokens for
260260
* existing sessions from getting minted, existing ID tokens may remain active until their
261261
* natural expiration (one hour).
262-
* To verify that ID tokens are revoked, use `verifyIdToken(idToken, true)`.
262+
* To verify that ID tokens are revoked, use {@link verifyIdTokenAsync(String, boolean)}.
263263
*
264264
* @param uid The user id for which tokens are revoked.
265265
* @return An {@code ApiFuture} which will complete successfully or if updating the user fails,
@@ -286,7 +286,7 @@ public ApiFuture<Void> revokeRefreshTokensAsync(String uid) {
286286
* If the token is invalid, the future throws an exception indicating the failure.
287287
*
288288
* <p>This does not check whether a token has been revoked.
289-
* See `verifyIdTokenAsync(token, checkRevoked)` below.
289+
* See {@link verifyIdTokenAsync(String, boolean)} below.
290290
*
291291
* @param token A Firebase ID Token to verify and parse.
292292
* @return An {@code ApiFuture} which will complete successfully with the parsed token, or
@@ -308,7 +308,7 @@ public ApiFuture<FirebaseToken> verifyIdTokenAsync(final String token) {
308308
* associated with this FirebaseAuth instance (which by default is extracted from your service
309309
* account)
310310
*
311-
* <p>If `checkRevoked` is true, additionally checks if the token has been revoked.
311+
* <p>If {@code checkRevoked} is true, additionally checks if the token has been revoked.
312312
*
313313
* <p>If the token is valid, and not revoked, the returned Future will complete successfully and
314314
* provide a parsed version of the token from which the UID and other claims in the token can be

src/main/java/com/google/firebase/database/FirebaseDatabase.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -280,10 +280,11 @@ public synchronized void setLogLevel(Logger.Level logLevel) {
280280
* connections and re-sends write operations when the network connection is restored.
281281
*
282282
* <p>However by default your write operations and cached data are only stored in-memory and will
283-
* be lost when your app restarts. By setting this value to `true`, the data will be persisted to
284-
* on-device (disk) storage and will thus be available again when the app is restarted (even when
285-
* there is no network connectivity at that time). Note that this method must be called before
286-
* creating your first Database reference and only needs to be called once per application.
283+
* be lost when your app restarts. By setting this value to {@code true}, the data will be
284+
* persisted to on-device (disk) storage and will thus be available again when the app is
285+
* restarted (even when there is no network connectivity at that time). Note that this method
286+
* must be called before creating your first Database reference and only needs to be called once
287+
* per application.
287288
*
288289
* @param isEnabled Set to true to enable disk persistence, set to false to disable it.
289290
*/

src/main/java/com/google/firebase/database/Query.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -237,13 +237,13 @@ public void run() {
237237
}
238238

239239
/**
240-
* By calling `keepSynced(true)` on a location, the data for that location will automatically be
241-
* downloaded and kept in sync, even when no listeners are attached for that location.
242-
* Additionally, while a location is kept synced, it will not be evicted from the persistent disk
243-
* cache.
240+
* By calling {@code keepSynced(true)} on a location, the data for that location will
241+
* automatically be downloaded and kept in sync, even when no listeners are attached for that
242+
* location. Additionally, while a location is kept synced, it will not be evicted from the
243+
* persistent disk cache.
244244
*
245-
* @param keepSynced Pass `true` to keep this location synchronized, pass `false` to stop
246-
* synchronization.
245+
* @param keepSynced Pass {@code true} to keep this location synchronized, pass {@code false} to
246+
* stop synchronization.
247247
* @since 2.3
248248
*/
249249
public void keepSynced(final boolean keepSynced) {

src/main/java/com/google/firebase/database/core/DatabaseConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public synchronized void setSessionPersistenceKey(String sessionKey) {
133133

134134
/**
135135
* By default the Firebase Database client will keep data in memory while your application is
136-
* running, but not when it is restarted. By setting this value to `true`, the data will be
136+
* running, but not when it is restarted. By setting this value to {@code true} the data will be
137137
* persisted to on-device (disk) storage and will thus be available again when the app is
138138
* restarted (even when there is no network connectivity at that time). Note that this method must
139139
* be called before creating your first Database reference and only needs to be called once per

0 commit comments

Comments
 (0)